Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Feb 14th, 2007, 2:30 AM   #1
malms
Newbie
 
Join Date: Feb 2007
Posts: 1
Rep Power: 0 malms is on a distinguished road
non-repetitive random number

hi guys,
when i generate k random numbers in range from 1 to 100, usually i got a few numbers that repeat themselves.
how can i generate the k non-repetitive random number?
i tried to do error checking, whether the new generated random number is the same with the old one, but it's not working

thanks
malms is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Median/Mode in arrays? {Need help} Java|Tera Java 27 Nov 29th, 2005 11:50 AM
FiveDigit + RandomeNumber Game. TecBrain Java 0 Nov 18th, 2005 3:53 PM
Random Number coldDeath Python 1 Sep 11th, 2005 9:17 AM
Random Number & Average Problem Hadrurus Java 6 Aug 15th, 2005 2:08 PM
non repeating random number generation gencor45 C# 2 Feb 9th, 2005 1:11 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:03 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC