Generating Random Numbers

Post your C# code snippets in here.
1 post Page 1 of 1
Contributors
User avatar
Shim
VIP - Donator
VIP - Donator
Posts: 882
Joined: Wed Dec 14, 2011 5:02 am

Generating Random Numbers
Shim
hey guys

this snippet will generate random numbers in c# by the way this is GUI application
Code: Select all

            Random random = new Random();

            int num = random.Next(1, 99999999);

            label1.Text = Convert.ToString(num);
you can change the target (1, 999999999) for your needs cooll;

have fun

download sample
generate random numbers.rar
You do not have the required permissions to view the files attached to this post.
Find my programs on Softpedia
1 post Page 1 of 1
Return to “Quick Snips”