number generator number generator code example Example: rng Random rng = new Random() rng.Next(min,max)