Back

Creating a Random Number in C#

The following creates a random number under 100:

            Random random = new Random();
            int num = random.Next(100);

Back


Make a Comment on this Article

Your Name:
Comment: