aspose file tools*
The moose likes Performance and the fly likes And the winners are ... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "And the winners are ..." Watch "And the winners are ..." New topic
Author

And the winners are ...

paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20729
    ∞

(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?

permaculture Wood Burning Stoves 2.0 - 4-DVD set
Thillai Sakthi
Ranch Hand

Joined: Jun 17, 2000
Posts: 102
Oh! That's a great news. Thanks Paul.
MK


Regards,
Shakthi
Paul Wetzel
Ranch Hand

Joined: Nov 02, 1999
Posts: 107
This is a great promotion, Jack got his book publicized and some people got free books!
thanks
paul
KASI VISHWANATH
Ranch Hand

Joined: Aug 06, 2000
Posts: 60
I shall never come to javaranch if i am not getting a free book
------------------
I.K.VISHWANATH


I.K.VISHWANATH
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20729
    ∞

Whatever cooks yer chicken buddy.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: And the winners are ...