This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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]
I agree. Here's the link:
subject: Please Help
Similar Threads
Random String
WA #1.....word association
calling random number generator
Random Numbers
JSP Radio button value retrieval