|
@analogist_net | |||||
|
Did you ever need a random integer in bash, /dev/urandom is just tantalizingly there but it's full bytes, and every easy bash snippet with modulo gives a biased distribution?
Here's a bash function that only needs GNU userland (bash, bc, head, xxd) gist.github.com/analogist/c0e6…
|
||||||
|
||||||