Comment Comment by degamad Exactly. There's many a page on random which explains why taking the modulus of rand is the wrong choice, but it's also the easiest one, which makes it all to common. parent degamad 25 days ago