



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Introduce the System.Random class
Create an instance of the Random class with a random seed value
Random CurrentRandom = new Random() Create an instance of the Random class with a fixed seed value (The same sequence of numbers will always be generated
Random CurrentRandom = new Random(10)
Next returns a random integer It can also return a value within a range by passing the minimum and maximum value as arguments I = CurrentRandom.Next() I = CurrentRandom.Next(1, 10) NextDouble returns a double between 0 and 1 J = CurrentRandom.NextDouble()