Arend_
(MM club member)
2011-01-04 03:34 PM
Random Number

 Code:
Function GetRandomNumber
  $GetRandomNumber = 4
  ;chosen by fair dice role.
  ;guaranteed to be random.
EndFunction


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


Glenn BarnasAdministrator
(KiX Supporter)
2011-01-04 04:51 PM
Re: Random Number

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


Arend_
(MM club member)
2011-01-04 05:00 PM
Re: Random Number

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!


Glenn BarnasAdministrator
(KiX Supporter)
2011-01-04 06:39 PM
Re: Random Number

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.


Arend_
(MM club member)
2011-01-04 11:37 PM
Re: Random Number

lol