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

5
LINES

< > BotCompany Repo | #1018801 // randomIntRange

JavaX fragment (include)

static IntRange randomIntRange(int minLength, int min, int max) {
  int start = random(min, max-min-minLength+1);
  int end = start+random(minLength, max-start+1);
  ret intRange(start, end);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018801
Snippet name: randomIntRange
Eternal ID of this version: #1018801/2
Text MD5: 6e66ee36f1bb02c4ab00b6d35b464822
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-13 20:00:34
Source code size: 197 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 269 / 292
Version history: 1 change(s)
Referenced in: [show references]