[juneau-lug] Re: [Fwd: VMware LUG Program]

  • From: Jamie <jamie@xxxxxxxxxxxxxxxxx>
  • To: juneau-lug@xxxxxxxxxxxxx
  • Date: Tue, 17 May 2005 09:50:34 -0800

Here is my try at a "pull a name from the hat"  script:

#!/bin/bash
Q=('p1' 'p2' 'p3' 'p4' 'p5')
echo 'And the winner is: '${Q[$(($RANDOM % 5))]}
 
where Q is an array of contestants names - p1..p5
and the 5 is a count of contestants

Last night we decided to postpone the VMWare Workstation 5 giveaway 
until next meeting.  Alternately, Jake should win for being the "senior" 
member present (and the person who always reserves the room!) or maybe 
Myron should win for being the most frequent attendee.  Anyone?

To break the suspense: the hotly contested FreeCiv game was still raging 
at library closing time but the Marvelous Martians (Myron) was 
officially declared the winner.

-Jamie


Jamie wrote:

>...
>So the first contest is who can write a random number, e-hat, name 
>pulling program in the fewest lines?
>...
>


------------------------------------
This is the Juneau-LUG mailing list.
To unsubscribe, send an e-mail to juneau-lug-request@xxxxxxxxxxxxx with the 
word unsubscribe in the subject header.

Other related posts: