N
Newbie
Why does this consistently code return exactly the same 'random' number?
Seems so simple I feel like a total idiot for not understanding what I'm
doing wrong
Thankyou for your assistance!
=========================================
public void Randomize()
{
for (int i=0; i < userEntry; i++)
{
int value = 0;
Random rand = new Random();
value = rand.nextInt( 999 );
}
System.out.println(value);
}
=========================================
Seems so simple I feel like a total idiot for not understanding what I'm
doing wrong
Thankyou for your assistance!
=========================================
public void Randomize()
{
for (int i=0; i < userEntry; i++)
{
int value = 0;
Random rand = new Random();
value = rand.nextInt( 999 );
}
System.out.println(value);
}
=========================================