Originally Posted by
hardwired
Can you use the java.util.Random class?
Edit: random numbers without using java funtions
aha - no java. Check the next method in the Random class for some clues.
carlos,
just like hardwired said there is another java class called Random you can upload before your programs you try something like this
java.util.Random;
public class RandomProject{
public staid void main(strings[] args){
Random generator = new Random(); //give a object name for the class
for(int i=0; i<=100; i++){
int randomNumbers = generator.nextInt(20);//will generate numbers from1-20
System.out.println(randomNumbers);
}
}
}
there you go you have now generated 100 random numbers between 1 and 20 hope this helps