File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Please Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Please Help" Watch "Please Help" New topic

Please Help

Angelo Watson
Ranch Hand

Joined: Oct 27, 2002
Posts: 39
Im creating a random lottery generator.
How do I display random numbers that dont repeat itself.
Please Help
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
If you do a search on this forum for the word random you will find LOTS of discussions on this.
For instance here is one:

"JavaRanch, where the deer and the Certified play" - David O'Meara
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
I'm finding it difficult to follow a few of your conversations as you seem to be cross-posting the same questions in multiple forums here. Please don't cross-post.
Thank You
On the subject of generating non-repeating random numbers, you may appreciate this past conversation.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
It is sorta covered in the JavaRanch Style Guide.
subject: Please Help
It's not a secret anymore!