Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

3
LINES

< > BotCompany Repo | #1029217 - randomAB

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2572L/16K).

sS randomAB(int n, Random random default defaultRandomizer()) {
  ret stringFromRepF(() -> charPlus('a', randomInt(random, 2)), n);
}

Author comment

Began life as a copy of #1029100

download  show line numbers  debug dex   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029217
Snippet name: randomAB
Eternal ID of this version: #1029217/3
Text MD5: 69c64a47f2f2785ca532c5881b2efd5e
Transpilation MD5: 531630851ed7bbdec6ed475f70ec5947
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-25 15:05:28
Source code size: 135 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 36 / 66
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1029217 & http://1029217.tinybrain.de