Random integer in VB.NET - Stack Overflow
it looks simpler, but this code is plain wrong. if you want a bug, then use this code. MS made their Next() method rather odd. the Min parameter is the inclusive minimum as one would expect, but the Max parameter is the exclusive minimum as one would NOT ...