Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Kaua Costa   on Feb 21 In Java Category.

  
Question Answered By: Corbin Jones   on Feb 21

or Random rnd = new Random()
int number  = (rnd.nextInt()) % 10 );
then the number will be between 0-10;

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Problem with random number in java Or get search suggestion and latest updates.


Tagged: