![]() |
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. http://forums.graal2001.com/forums/images/sendpm.gif |
Quote:
NPC Code: :confused: |
that does not exclude 3 and 6.
|
Loriel did 2 one liners and a few others
One of his one liners was one that i missed =D And yes, a few other people came up with stuff but no one liners... they interest me the most hehe r0bin needs to message me about something common in all of his solutions =p James (andy0687) and Schoko (JAceves) both had some interesting 2 liners Rick (Thought) had a good solution that I also did, and Loriel did too. Keep sending them! |
NPC Code: Like that? |
Quote:
and that condition will make that loop run forever XD Keep sending them in! Send more then one solution if you wish! Ive gotten quite a lot |
OK here are the results!
My best solution was the best one Schoko came up with NPC Code: (Hehe 7 is an interesting number ;D) My other one liner was only matched by Loriel Mine: NPC Code: Loriels: NPC Code: Loriel summited this, then Darkshadows_Legend Matched it NPC Code: Similiar to that was one Shadowblaze (Zelph_Mystick), adam, and darkshadows_legend did NPC Code: Moving on after the one liners: Rick (Thought), Loriel, Darkshadows_Legend, r0bin and myself came up with this (which is the most efficient via cpu resources) NPC Code: Schoko made these two interesting ones NPC Code: NPC Code: r0bin came up with a similiar two NPC Code: NPC Code: Loriel did this interesting guy NPC Code: James (Andy0687) did this one NPC Code: Dach did this... not sure if it works but he can fix it if not XD NPC Code: Darkshadows_Legend did this one NPC Code: Xecutor did this which seemed to add extra work XD NPC Code: and ill post Spyders since he sent me the obvious =D Spyder NPC Code: Do you have an interesting one? Post it =) |
wont work till the new engine but
NPC Code: |
meh, the 9 should have been 8 upon further consideration, but I dun like it anyhow, this is better
NPC Code: redundancy is fun :rolleyes: |
Mine was slightly different from the one you said I did.
perhaps becouse I didn't put in an int() it didn't need to be 0,6 it needed to be 1,7 and it works fine. Personally I like the #R one the best. It's simple, it's customizable. I was gonna do that. I dont know why I didn't. The first one I wanted to do was the array one, but It took 2 lines so I skipped it. I love arrays. ;-) |
Quote:
|
NPC Code: Meh... |
Quote:
new engine will be fun |
All times are GMT +2. The time now is 09:00 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.