Calling Random Numbers
#5
I personally think
Code:
thing = Roll.d(20) + Roll.d(20)
makes more sense. It's self-documenting.

Plus, no matter what way you do it, it is still 'rand(n)+1' and not 'rand(n)' to get a dice roll. For example, rand(6) returns a number from 0-5. rand(6)+1 returns a number from 1-6 as required by dice.
Reply }


Messages In This Thread
Calling Random Numbers - by Alistor - 09-06-2013, 07:46 PM
RE: Calling Random Numbers - by DerVVulfman - 09-07-2013, 03:14 AM
RE: Calling Random Numbers - by MechanicalPen - 09-07-2013, 06:09 PM
RE: Calling Random Numbers - by DerVVulfman - 09-08-2013, 12:27 AM
RE: Calling Random Numbers - by MechanicalPen - 09-08-2013, 01:02 AM
RE: Calling Random Numbers - by DerVVulfman - 09-08-2013, 03:09 AM
RE: Calling Random Numbers - by MechanicalPen - 09-08-2013, 06:16 PM
RE: Calling Random Numbers - by DerVVulfman - 09-08-2013, 08:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Making Forest Maps with the Random Map Generator ShadowIce 16 21,992 02-02-2014, 08:18 PM
Last Post: ShadowIce
   Help Making Random Maps ShadowIce 0 3,263 02-02-2010, 03:28 PM
Last Post: ShadowIce
   Calling Scripts aistinger 3 5,894 12-03-2009, 01:41 AM
Last Post: aistinger
   Random Monster Groups Yin 25 31,086 08-18-2009, 06:04 AM
Last Post: DerVVulfman



Users browsing this thread: 2 Guest(s)