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
Amit Ziv
NA
40
8.7k
How to avoid random numbers duplication?
Apr 19 2014 11:23 AM
ive created 2 seperate randoms:
private Random r1 = new Random();
private Random r2 = new Random();
then i did the random.next method:
maxGreenDelay = r1.Next(10, 40);
maxRedDelay = r2.Next(10, 40);
and the same numbers appeared.
how can i avoid that? (get 2 different randoms withing this min - max values)
Reply
Answers (
4
)
How to build ajax in ASP.NET
JPG to DICOM and Print