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

4
LINES

< > BotCompany Repo | #1031761 // randomIntRangeWithLength

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

Libraryless. Click here for Pure Java version (2965L/18K).

static IntRange randomIntRangeWithLength(int length, int min default 0, int max) {
  int start = random(min, max-min-length+1);
  ret intRangeWithLength(start, length);
}

Author comment

Began life as a copy of #1018801

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031761
Snippet name: randomIntRangeWithLength
Eternal ID of this version: #1031761/2
Text MD5: 00fc7a4fdd2208021321123ae113017c
Transpilation MD5: 81c754d5d5a4c3069b53eb1379fdc5e8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-29 08:14:39
Source code size: 173 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 134 / 174
Version history: 1 change(s)
Referenced in: [show references]