Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can have the best of both worlds with something like weighted_selection( output, hash( output ) ) using the hash as the PRNG seed. (If you're paranoid about statistical issues due to identical outputs (extremely unlikely) then add a nonce to the hash.)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: