Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:39 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.