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

7
LINES

< > BotCompany Repo | #1002411 // rand - short for random

JavaX fragment (include)

static int rand(int n) {
  ret random(n);
}

static double rand(double d) {
  ret random(d);
}

Author comment

Began life as a copy of #1002033

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002411
Snippet name: rand - short for random
Eternal ID of this version: #1002411/2
Text MD5: 85e2567acec3617a1d4b0a4ecc784bbb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-02 18:42:32
Source code size: 100 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 681 / 929
Version history: 1 change(s)
Referenced in: #1002427 - Accellerating 629 (SPIKE)
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#3000382 - Answer for ferdie (>> t = 1, f = 0)