top | item 9725240 (no title) willthames | 10 years ago Or seq -f %04g 1 10 discuss order hn newest natch|10 years ago Sure seq is OK, but jot does everything seq does and more, so I prefer jot.# generate 10 random numbers between 1 and 1 millionjot -r 10 1 1000000 anc84|10 years ago I meant to go all "just use coreutils, there is shuf available already, no need for some third-party tool" but then I realised that jot is an integral part of BSD. Rock on! :)For us Linuxers: shuf -i 1-1000000 -n 10
natch|10 years ago Sure seq is OK, but jot does everything seq does and more, so I prefer jot.# generate 10 random numbers between 1 and 1 millionjot -r 10 1 1000000 anc84|10 years ago I meant to go all "just use coreutils, there is shuf available already, no need for some third-party tool" but then I realised that jot is an integral part of BSD. Rock on! :)For us Linuxers: shuf -i 1-1000000 -n 10
anc84|10 years ago I meant to go all "just use coreutils, there is shuf available already, no need for some third-party tool" but then I realised that jot is an integral part of BSD. Rock on! :)For us Linuxers: shuf -i 1-1000000 -n 10
natch|10 years ago
# generate 10 random numbers between 1 and 1 million
jot -r 10 1 1000000
anc84|10 years ago
For us Linuxers: shuf -i 1-1000000 -n 10