F How to random number generator in C# | CodeTheta

How to random number generator in C#

August 17, 2019

Code :
 private void RandomNumberGenerator() {
            Random r = new Random();
            for (int i = 1; i < 10; i++) {
                int n = r.Next();
                txtRandomNumber.Text = "INV"+n.ToString();
            }
        }

IDE Used To Test This Code : Microsoft Visual Studio.

Try this code in your computer for better understanding. Enjoy the code. If you have any Question you can contact us or mail us.We will reply you as soon as possible.

Post a Comment