TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sbugig
NA
39
32.3k
Random number generation
Aug 24 2005 3:25 AM
Hi every one out there!! I have a big problem here- I want to generate random integers between 0 and 15, 0, 15 included. but there is a condition, i donot want the numbers to repeat, it should be like: (10,15,0,14,13,1,9,6,5,7,3,12,2,4,8,11)its an example! can any one help me please? I tried this but did not work, it repeats some integers System.Random r = new Random();for (int i = 0; i < 15; i++){ System.Console.WriteLine(r.Next(0, 15));}
Reply
Answers (
4
)
System userid and Password
Help For creating reusable components