• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

AND THE WINNERS ARE!!!

 
Sheriff
Posts: 440
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Trailboss
Posts: 22997
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations Paul and Kavita!
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
¡Felicidades Paul and Kavita!
 
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great work! Matt Did a really good job.
regds
maha anna
 
paul wheaton
Trailboss
Posts: 22997
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah!
Way to go Matt! You even go more participation than when I did a book giveaway!
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations Kavita and Paul
and Matt....this is really a fab way to pick winners
looking forward to the next contest
cheers,
Deb
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bras cause cancer. And tiny ads:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!