• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

AND THE BOOK WINNERS ARE!!!

 
Sheriff
Posts: 440
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<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).]
 
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Matt Midcap
Sheriff
Posts: 440
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1449
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Matt,
Did you send out the notifications? Maybe my mail server is just being verryyy slow.
John
 
Is that a spider in your hair? Here, threaten it with this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic