Throwing two dice in Ocaml.

"Douglas Lewit [email protected] [ocaml_beginners]" <[email protected]> Wed, 27 Jan 2016 09:34:48 -0600
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <CAM0XMJSUm0em-ykRwo1hvcVOPxvjaY139sTzseinZeUm41DeTw@mail.gmail.com>
I just thought I would share this one.  I wrote a little program to
simulate the problem of rolling two dice.  The sums of course will range
from 2 ( if you roll 1's on both dice ) to 12 ( if you roll 6's on both
dice ).  This was a fun little program to work on.  If you compile it,
you'll have to compile it with unix.cmxa and threads.cmxa because the
program contains the* Thread.delay* command to delay the printing of output
to standard output.

Best,

Douglas.


[Non-text portions of this message have been removed]