Thread: Fun Challenge!
View Single Post
  #1  
Old 01-23-2004, 08:18 AM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
Fun Challenge!

I know this is nerdy but...
Fun Challenge/Contest thing

The Challenge:
Assign the variable "a" with one of the following numbers randomly:
1 2 4 5 7 8 (ie exclude 3 and 6)

I know this is easy, but who can come up with the best/most interesting way?

Assume your condition has been triggered, you need only show anything concerning getting "a" it's random value

send me a Private Message with your solution (as to not give anything away)
I will post the most impressive yada yada tomorrow night =).

I came up with 2 one-liners (only one assignment without loops or conditions), many 2 liners, and many condition then assignments.

__________________

Last edited by Kristi; 01-23-2004 at 08:54 AM..
Reply With Quote