[colug-432] Random Generator

George Larson george.g.larson at gmail.com
Sun May 25 21:57:52 EDT 2014


On Sun, May 25, 2014 at 9:50 PM, George Larson <george.g.larson at gmail.com>wrote:

> ​curl -s
> ​ ...​
>

​Oh, sorry.  If it can't be more than 20 chars then:

​curl -s '
https://www.random.org/strings/?num=25&len=20&digits=on&loweralpha=on&upperalpha=on&unique=on&format=plain&rnd=new'
| head -$(( (RANDOM % 25)+1 )) | tail -1

We're using 'random.org' which uses atmospheric noise to do randomness.  We
grab more lines than needed (i.e., 25) then we list the first X
(pseudorandom from shell) and then take the last one of those.

Basically, it's what I described here:  [
http://j0rg3.insomnia247.nl/weblog/2014/03/18#20140318.random.data  ]
​





-- 

-= c0d3 :: j0rg3 - all code, no cruft <http://j0rg3.com> =-

    - send me a private message <https://keybase.io/j0rg3> -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.colug.net/pipermail/colug-432/attachments/20140525/7e808f97/attachment.html 


More information about the colug-432 mailing list