It's the paste feature on your PC. Ctrl-C to copy and Ctrl-V to paste.
//Random Number Gen
Random r = new Random();
//Xreates a wait time
int wait = r.nextInt(2000);
//Sleep the Thread
try {
sleep(wait);
} catch (Exception e) {
System.out.println(e + "Thread asleep");
}
¤DãŃn¥ §êãGüLL¤;4507040 said:That's quite spooky, mine was:
import java.util.Random;
// Generate 10 random integers in the range 0..99.
public final class RandomInteger {
public static final void main(String... aArgs){
log("Generating 10 random integers in range 0..99.");
//note a single Random object is reused here
Random randomGenerator = new Random();
for (int idx = 1; idx <= 10; ++idx){
int randomInt = randomGenerator.nextInt(100);
log("Generated : " + randomInt);
}