Libraryless. Click here for Pure Java version (2249L/14K).
sS ludicrousRepeat(S word) { ret ludicrousRepeat(20, word); } sS ludicrousRepeat(int max, S word) { new StringBuilder buf; for (char c : characters(word)) buf.append(rep(c, randomIntBetween1And(max))); ret str(buf); }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1026469 |
| Snippet name: | ludicrousRepeat |
| Eternal ID of this version: | #1026469/2 |
| Text MD5: | d157a4ec7e55c91ce681febbe01d833b |
| Transpilation MD5: | aa6e92b6c8238f6f2f67ff46aa8d93f9 |
| Author: | stefan |
| Category: | javax / string fun |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-01-05 03:26:25 |
| Source code size: | 239 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 368 / 523 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |