Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
Tepix
8y ago
0 comments
Save
Share
Indeed! Also if $RANDOM is too small for your needs, you can use $RANDOM$RANDOM (and it will have different values)
0 comments
1 comments · 1 top-level
top
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