• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

And the winners are ...

 
paul wheaton
Trailboss
Pie
Posts: 21478
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(sorry for the delay in announcing the results. My internet connection was down yesterday)
The winners are:

    <h2>
    William Brogden

    M Kumaresan

    Frank Carver

    David Lu

    </h2>

    I did the judging this time. There were about ten entries that were disqualified because their account name did not meet our requirements. There were over a dozen messages that were disqualified because they did not relate to performance or contain any substance. I also excluded the mountains of messages from Jack - I figured he probably didn't want to win a copy of his own book.
    This left 75 valid entries from 41 people. This made the odds about 1 in 19 entries.
    I put all the names in a text file (people that had more than one valid entry had more than one line in the text file). I then ran the following program passing in the value of 75:
    <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>
    Thanks to Jack for his tremendous contributions!
    What do you guys think? Was this a good promotion? Should we do more? Should we do things differently?
 
Thillai Sakthi
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh! That's a great news. Thanks Paul.
MK
 
Paul Wetzel
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a great promotion, Jack got his book publicized and some people got free books!
thanks
paul
 
KASI VISHWANATH
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I shall never come to javaranch if i am not getting a free book
------------------
I.K.VISHWANATH
 
paul wheaton
Trailboss
Pie
Posts: 21478
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whatever cooks yer chicken buddy.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic