From: Austin Ziegler Date: 2006-01-07T10:36:37+09:00 Subject: Re: [QUIZ] Dice Roller (#61) On 06/01/06, Jim Freeze wrote: > No wonder I don't play D&D. I don't think I am smart enough. > > What does 0 -> 10 mean. Does it mean a dice can have the > values 0,1,2,3...10? > > If so, why is a 0 never possible? > > And why does d10 have 0 -> 10 while a d6 has 1 -> 6? d10 has size 0..9, generally because of size (the print on them is typically only large enough to have one decimal digit). 0 is rarely a useful number in gaming, so it is treated as a 10 result. Therefore rand(10) + 1 is sufficient to represent d10. When used as d100, you'll get the values 00 .. 99, but again, 00 is not a useful value so it is treated as 100. So rand(100) + 1 is sufficient to represent d100. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca