Post History
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())'?...
#4: Post edited
- 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](https://linux.codidact.com/posts/291134) and I could generate a string of digits. But that's not very precise - what if I want numbers from `[134, 876874]`, for example?
- 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](https://linux.codidact.com/posts/291134) and I could generate a string of digits. But that's not very precise - what if I want numbers from `[534, 876874]`, for example?
#3: Post edited
- 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](https://linux.codidact.com/posts/291134) and I could generate a string of digits. But that's not very precise - what if I want numbers from `[134, 876]`, for example?
- 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](https://linux.codidact.com/posts/291134) and I could generate a string of digits. But that's not very precise - what if I want numbers from `[134, 876874]`, for example?
#2: Post edited
How do you generate arbitrary random numbers from `/dev/random`?
- How do you generate arbitrary random numbers from /dev/random?
#1: Initial revision
How do you generate arbitrary random numbers from `/dev/random`?
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](https://linux.codidact.com/posts/291134) and I could generate a string of digits. But that's not very precise - what if I want numbers from `[134, 876]`, for example?