I making a program. I know most of it just need help with the number generator. I want it to occur the number of times inputted.
singh_soorma94
0
Newbie Poster
Recommended Answers
Jump to Post.Net has a class for that.
Random ran = new Random(); int i = ran.Next(10); //This will make i an integer between 0 and 9 for (int x = 0; x < i; x++) //Do stuff
Hope this helps!
All 3 Replies
skatamatic
371
Practically a Posting Shark
vishal1949
-1
Light Poster
skatamatic
371
Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.