can anyone tell what did i wrong on this random number? http://pastebin.com/M3J9u5sR
chubbyy.putto 0 Junior Poster in Training
Recommended Answers
Jump to PostDid you sort the list after it was generated?
If you generated 200 random numbers in the range of 1-30, you should expect about 6 or 7 of each value to occur. Even in your set or 30 values, you will get duplicates.
Jump to PostHi, "chubbyy.putto."
(Perhaps you could include at least your first name in your Profile, so we can address you with a proper name instead of your forum handle.)
Did you ever get your program working like you wanted?
Was your assignment to write the program, or did you just need …
All 5 Replies
chubbyy.putto 0 Junior Poster in Training
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
vmanes 1,165 Posting Virtuoso
DavidB 44 Junior Poster
rubberman commented: Like their use of atmospheric "noise" to seed the generator! :-) +12
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.