Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
Tepix
8y ago
0 comments
Share
Indeed! Also if $RANDOM is too small for your needs, you can use $RANDOM$RANDOM (and it will have different values)
0 comments
default
newest
oldest
jwilk
8y ago
$RANDOM$RANDOM doesn't have uniform distribution.
Use $((RANDOM + (RANDOM << 15))) instead.
j
/
k
navigate · click thread line to collapse