And the winners are.... <h1>Paul Wetzel</h1> and <h1>Kavita Ghia</h1> <h3>Let's here it for our winners! Wooo Hoooooo!!!</h3> Here is how the winners were chosen: I went through the forum and read EVERY message posted on or after the 18th. If the author had a proper name and the message had some substance (not just "thanks" or "enter me in the contest" or "yeah, what he said") then I added the name to a list in a text file. I ended up with 122 lines in the text file. Some names were repeated several times. I used this little program to pick a number from 1 to 122: code: <pre> import java.util.* ; public class Pick { public static void main( String[] args ) { int numPicks = Integer.parseInt( args[0] ); Random r = new Random(); for( int i = 0 ; i < 10 ; i++ ) { r.nextInt(); } System.out.println( r.nextInt( numPicks ) + 1 ); } } </pre> Fair enough? Thanks to the good folks at Wrox press (www.wrox.com) for the books! Questions? Comments? Should we do this again? I think we should how about you? Best Regards, Matt Midcap
Thanks! I feel very lucky to have won! Also I owe alot to javaranch. This place has been a most valued resource in my professional success. keep up the good work sincerely Paul J. Wetzel [This message has been edited by Paul Wetzel (edited October 23, 2000).]
Hello Friends, Its great to have a place like JavaRanch.I am calling it a place because it serves the purpose of the like minded people very well.This is the message to say thanks to all the folks at JavaRanch and especially to Matt for having such innovative ideas and maintaining the interest of their members.Great going Matt! My special thanks also goes to Paul and Tony for wishing me.And I am thankful to all the people at JavaRanch for being very co-operative,courteous and helpful. THANKS ONCE AGAIN.
Hi, First of all congrats to Kavita and Paul. When I tried to print the values of r.nextInt()in the code given by Matt it gives some values which are very large values that doesn't fit into int. Basically I don't understand the concept of using the random object over the Math.random(). How is the random class better than the Math.random() Please help me in understanding. ------------------ Pichaimani
Pichaimani
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.