Answers for "java radnom"

1

java radnom

import java.util.Random;
int rndNumber;

Random rnd = new Random(); //rnd is the name of the randomizer
rndNumber = 1 + rnd.nextInt(9); //int between 1-9
Posted by: Guest on March-12-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language