1 | static int random_incl(int min, int max, Random random default defaultRandomizer()) { |
2 | ret random(min, max+1, random); |
3 | } |
4 | |
5 | static int random_incl(int max) { |
6 | ret random(0, max+1); |
7 | } |
Began life as a copy of #1007391
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: | #1015062 |
Snippet name: | random_incl - random int between a (inclusive) and b (inclusive) |
Eternal ID of this version: | #1015062/3 |
Text MD5: | 018ac6730e7789c04d0f38db9c55a85c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-30 20:03:55 |
Source code size: | 188 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 480 / 497 |
Version history: | 2 change(s) |
Referenced in: | [show references] |