Twitter | Pretraživanje | |
James Wu
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)
unbiased arbitrary random integer generator using kernel cryptographic random - randint.sh
GitHub GitHub @github
Reply Retweet Označi sa "sviđa mi se" More