1 | static IntRange randomIntRange(int minLength, int min, int max) { |
2 | int start = random(min, max-min-minLength+1); |
3 | int end = start+random(minLength, max-start+1); |
4 | ret intRange(start, end); |
5 | } |
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: | #1018801 |
Snippet name: | randomIntRange |
Eternal ID of this version: | #1018801/2 |
Text MD5: | 6e66ee36f1bb02c4ab00b6d35b464822 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-13 20:00:34 |
Source code size: | 197 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 341 / 373 |
Version history: | 1 change(s) |
Referenced in: | [show references] |