aspose file tools*
The moose likes Java Micro Edition and the fly likes generating random numbers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "generating random numbers" Watch "generating random numbers" New topic
Author

generating random numbers

Jude Fawly
Ranch Hand

Joined: Dec 01, 2004
Posts: 33
hi there,

how can i generate a random number between specific range, say for example between 1-5??


Teach me to die that so I may<br />Rise glorious at the awful day
Yuri Magrisso
Ranch Hand

Joined: Sep 13, 2003
Posts: 58
You can use java.util.Random:


Yuri
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: generating random numbers