Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Generating random numbers, while excluding some numbers

807601Dec 5 2007 — edited Dec 6 2007
I want to generate random numbers between 1 and 13 (including 1 and 13), while excluding numbers 6 and 9

Please tell me theres an easy fix to this issue --
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 3 2008
Added on Dec 5 2007
14 comments
5,434 views