How do you generate arbitrary random numbers from /dev/random?
+2
−0
Suppose I want to get random numbers from /dev/random
with basic CLI tools. Is there a way to do it, that's easier to type and read than python -c 'import random; print(100 + 200*random.random())'
?
I know how to generate random strings and I could generate a string of digits. But that's not very precise - what if I want numbers from [534, 876874]
, for example?
0 comment threads