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

17
LINES

< > BotCompany Repo | #1000869 // randomID

JavaX fragment (include)

1  
static int randomID_defaultLength = 12;
2  
3  
static String randomID(int length) {
4  
  return makeRandomID(length);
5  
}
6  
7  
static String randomID(Random r, int length) {
8  
  return makeRandomID(r, length);
9  
}
10  
11  
static String randomID() {
12  
  return randomID(randomID_defaultLength);
13  
}
14  
15  
static String randomID(Random r) {
16  
  return randomID(r, randomID_defaultLength);
17  
}

Author comment

Began life as a copy of #1000570

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, wnsclhtenguj

No comments. add comment

Snippet ID: #1000869
Snippet name: randomID
Eternal ID of this version: #1000869/2
Text MD5: 627b92c18f3ac2af906c938e5eaf8fc6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-12 12:56:07
Source code size: 367 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 773 / 3029
Version history: 1 change(s)
Referenced in: [show references]