|
|
|
|
|
by em500
1910 days ago
|
|
If you're importing from command line tools, you might as well use the specialized `shuf` tool: shuf -i 1-$bignum
or for random numbers with replacement shuf -i 1-$bignum -r -n $bignum
These give you a sample of random integers. `shuf` is part of GNU coreutils, so present in most Linux installs (but not on macOS). |
|