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

7
LINES

< > BotCompany Repo | #1018813 // randomFloat - between 0 and 1

JavaX fragment (include)

1  
static float randomFloat() {
2  
  ret (float) random();
3  
}
4  
5  
static float randomFloat(float min default 0, float max) {
6  
  ret (float) random(min, max);
7  
}

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: #1018813
Snippet name: randomFloat - between 0 and 1
Eternal ID of this version: #1018813/4
Text MD5: bad97e023933368548d9cd980bda2990
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-11-04 04:23:49
Source code size: 154 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 348 / 394
Version history: 3 change(s)
Referenced in: [show references]