Page 1 of 1 1
Topic Options
#201323 - 2011-01-04 03:34 PM Random Number
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1894
Loc: Hilversum, The Netherlands
 Code:
Function GetRandomNumber
  $GetRandomNumber = 4
  ;chosen by fair dice role.
  ;guaranteed to be random.
EndFunction


Converted from http://xkcd.com/221/

Top
#201326 - 2011-01-04 04:51 PM Re: Random Number [Re: Arend_]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
Where's the header?

Shouldn't comments come first?

What platforms has this been tested on?

Any reason you're posting here and not in the UDF zone (over near the Twilight Zone??)

I'd complain about not declaring vars, but you didn't actually use any..

\:D

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#201327 - 2011-01-04 05:00 PM Re: Random Number [Re: Glenn Barnas]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1894
Loc: Hilversum, The Netherlands
Hey, this isn't C, so I don't need headers, but you can #include kix.c if you like :-P
Tested on all relevant platforms, mostly dice boards ;\)
The UDF zone is not compliant with this logic ;\)
I did use a var but it needs no declaration ;\)

So there!

Top
#201328 - 2011-01-04 06:39 PM Re: Random Number [Re: Arend_]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
Oh - one more thing..

According to the TimeDiff() UDF, you're about 87.25* days early for this posting. ;\)

Glenn

* based on EST - your minutes may vary.
_________________________
Actually I am a Rocket Scientist! \:D

Top
#201329 - 2011-01-04 11:37 PM Re: Random Number [Re: Glenn Barnas]
Arend_ Moderator Offline
MM club member
*****

Registered: 2005-01-17
Posts: 1894
Loc: Hilversum, The Netherlands
lol
Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 382 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.251 seconds in which 0.207 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org