how to generate a random numbver in code example Example: rng Random rng = new Random() rng.Next(min,max)