mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-22 12:57:01 +00:00
edit 'Echo series of random numbers between a range'
This commit is contained in:
parent
cd6d07c704
commit
9615774289
@ -804,10 +804,10 @@ shuf -n 100 filename
|
||||
for i in a b c d e; do echo $i; done| shuf
|
||||
```
|
||||
|
||||
##### Echo series of random numbers between a range (e.g. generate 15 random numbers from 0-10)
|
||||
##### Echo series of random numbers between a range (e.g. shuffle numbers from 0-100, then pick 15 of them randomly)
|
||||
|
||||
```bash
|
||||
shuf -i 0-10 -n 15
|
||||
shuf -i 0-100 -n 15
|
||||
```
|
||||
|
||||
##### Echo a random number
|
||||
|
Loading…
Reference in New Issue
Block a user