[CoLoCo] dice rolls in C

Jim Hutchinson jim at ubuntu-rocks.org
Sat Feb 9 20:42:13 GMT 2008


On Feb 9, 2008 12:10 PM, TJ Heaney <tjheaney at gmail.com> wrote:
>
>
> Ok, I am getting confused as to the end result....

Sorry about that. Part of the problem is we don't have a clear idea of
the end result yet. In short, we are trying to devise a way to test
pseudo-RNGs and see if they are as good as true-RNGs. This is a 6th
grade science fair project my daughter is working on. The idea was to
generate random dice rolls and compare the results.

In fact, because she is supposed to be doing the work and not me, I'm
going to have her ask the question here so watch for her email.

>
> Is this supposed to be something like a RPG tool?

Yes

>
> So 2D10 would yield results ranging from 2 - 20

Correct

>
> And since (rand(10)) generates a number from 0-9, we add the 1 to the value
> to get 1 -10, right?

Yes


>
> I'm watching because now I am curious and want to make sure I understand
> what is going on :)

If you have any insight please share.

Thanks,
-jim

-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html



More information about the Ubuntu-us-co mailing list