Two Laptop Bag*
The moose likes Agile and Other Processes and the fly likes AND THE BOOK WINNERS ARE!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Agile and Other Processes
Bookmark "AND THE BOOK WINNERS ARE!!!" Watch "AND THE BOOK WINNERS ARE!!!" New topic
Author

AND THE BOOK WINNERS ARE!!!

Matt Midcap
Sheriff

Joined: Jan 07, 1999
Posts: 440
<H2>
John Wetherbie
Paul Ralph
Steve Fahlbusch
Edgar Sanchez
</H2>
Hoooooooo Doggy! Let here it for our four lucky winners! Yeee-haaa!!!
Here is how the winners were chosen: I went through the forum and read EVERY message posted on or after the 12th. 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 92 lines in the text file. Some names were repeated several times. I used this little program to pick a number from 1 to 92:
<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>
NOTE: I also had a would be winner who did not include their e-mail when they registered! Tisk, tisk, tisk... I had to have the generator pick another winner because that person didn't follow the registration directions. Oh, well - better for the rest of you who did - right?
Fair enough?
Thanks to the good folks at Addison-Wesley ( http://www.Addison-Wesley.com ) for the books!
Be sure to watch for our next book giveaway in the "Star Office, et al." forum coming up on the 19th.
I have to ride off into the sunset now, so I'll see ya' soon partner.
Matt Midcap
[This message has been edited by Matt Midcap (edited December 16, 2000).]


Best Regards,<br />Matt Midcap
John Wetherbie
Rancher

Joined: Apr 05, 2000
Posts: 1441
Wow!
My name is in HTML! (Big HTML!)
Thanks to Matt and Java Ranch!
So, now what? Should I contact someone or will I be contacted?
John


The only reason for time is so that everything doesn't happen all at once.
- Buckaroo Banzai
Matt Midcap
Sheriff

Joined: Jan 07, 1999
Posts: 440
Actually I am sending out notification right now to all the winners. In the notification I will ask for your mailing address, from which the publisher will send you the book directly.
Congrats All!!!
Matt
John Wetherbie
Rancher

Joined: Apr 05, 2000
Posts: 1441
Matt,
Did you send out the notifications? Maybe my mail server is just being verryyy slow.
John
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: AND THE BOOK WINNERS ARE!!!
 
Similar Threads
AND THE WINNERS ARE!!!
And the winners are ...
BOOK WINNERS!
JAVA BOOK WINNERS!!!
AND THE BOOKS WINNERS ARE!!!...