Dice Roller Program
Community Forums/Showcase/Dice Roller Program
| ||
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. |
| ||
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. |
| ||
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. |
| ||
GetNum = Millisecs() Mod 6 + 1Strictly speaking, that could fail. Millisecs() might be negative. I would use Rand(1,6). |
| ||
It's also not random if the program is running in a fairly repetitive cycle. |