Got something to say or just want fewer pesky ads? Join us... 😊

Press Ctrl+V on your keyboard, see what comes up, and post it here.



logan89

Active member
Jan 4, 2007
1,429
Brington
Any training tonight?
 






tgretton87

Shoreham Beach Seagull#2
Jul 30, 2011
691
“ the resident often made remarks like this as they were very confused and depressed about their condition,

Well this must be something to do with the Mrs LOL
 




















West Hoathly Seagull

Honorary Ruffian
Aug 26, 2003
3,544
Sharpthorne/SW11
to influence Sir Samuel Romilly in the Prince’s favour

(I'm currently writing a Masters degree essay on John Nash and his relationship with the Prince Regent).
 




DJ NOBO

Well-known member
Jul 18, 2004
6,735
Wiltshire
Community Business Solutions Limited
 




Stumpy Tim

Well-known member
We open the doors at 1pm on a Wednesday and the first race is at 2.08pm. Admission is free and a meal in the restaurant is £5 for 1 course, £7.50 for 2 courses and £10 for 3 courses, it is advisable to book for the restaurant.
 




MrShaun15

New member
Aug 28, 2010
2,484
Designing Cinema-Quality Presentations with Keynote


... haha apple for uni work :)
 






//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");
}

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);
}

:lol:
 




gullshark

Well-known member
Dec 5, 2005
3,078
Worthing
¤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);
}

:lol:

Couple of points... you don't need to use final on the class or main method, main takes String[] args, you should ideally start from 0 in java, not 1 when counting up and there is no point creating a new int - just log ("Generated : "+randomGenerator.nextInt(100)); seeing as that variable will only be visible in the loop.

Carry on ;)
 




Albion and Premier League latest from Sky Sports


Top
Link Here