How to safely generate a random number · HackerTrans