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

7
LINES

< > BotCompany Repo | #1014987 // varyInt

JavaX fragment (include)

static int varyInt(int i) {
  ret varyInt(10, i);
}

static int varyInt(int range, int i) {
  ret random(i-range, i+range+1);
}

Author comment

Began life as a copy of #1014955

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1014987
Snippet name: varyInt
Eternal ID of this version: #1014987/2
Text MD5: ac0b7b5ffd9f6d412702eea363a8221e
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-07 16:34:20
Source code size: 135 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 435 / 444
Version history: 1 change(s)
Referenced in: [show references]