Dice Roller Program

Community Forums/Showcase/Dice Roller Program

Dox(Posted 2016) [#1]
Hi,
To play some RPGs and Gamebooks on my computer I wanted a simple and fast dice roller program, so I programed one (called Instadice), and in the hope that it would be useful to somebody I am sharing it here.
https://sourceforge.net/projects/instadice/files/InstaDice%20Setup%20%28net%29.exe/download

Thanks.


Floyd(Posted 2016) [#2]
That's not a valid link(now fixed), but it was easy enough to search sourceforge for instadice.

I would assume everyone here can roll their own dice.


TeaBoy(Posted 2016) [#3]
Always nice to get more code Dox.

For dice rolling I usually use something like this:

GetNum = Millisecs() Mod 6 + 1

It's enough for my purposes.


Floyd(Posted 2016) [#4]
GetNum = Millisecs() Mod 6 + 1
Strictly speaking, that could fail. Millisecs() might be negative. I would use Rand(1,6).


Matty(Posted 2016) [#5]
It's also not random if the program is running in a fairly repetitive cycle.