A Manic Developer's Place

Generate a random number via the shell

April 3, 2016

Linux


awk -v min=1 -v max=1000 'BEGIN{srand(); print int(min+rand()*(max-min+1))}'

gulpserve

ManicDev on Github

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/O d-pu s-:+++ a+ C+++ UL+++ P- L++ E--- W+++ N o-- K--? w++ O M+ V PS PE Y+ PGP t+ 5? X+ R tv- b+ DI- D++ G e+ h++ r++ z
------END GEEK CODE BLOCK------