I helped my friend make a dice game
-
I'm on a roll! *hides* No, but seriously I did. You shake the little M5 stack and 6 dice come up with a more or less true random. And he's so happy. It put me in a good mood. He learned a little C++. Win win.
To err is human. Fortune favors the monsters.
-
I'm on a roll! *hides* No, but seriously I did. You shake the little M5 stack and 6 dice come up with a more or less true random. And he's so happy. It put me in a good mood. He learned a little C++. Win win.
To err is human. Fortune favors the monsters.
honey the codewitch wrote:
with a more or less true random
care to elaborate?
M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
-
I'm on a roll! *hides* No, but seriously I did. You shake the little M5 stack and 6 dice come up with a more or less true random. And he's so happy. It put me in a good mood. He learned a little C++. Win win.
To err is human. Fortune favors the monsters.
Ain't you a pip.
-
honey the codewitch wrote:
with a more or less true random
care to elaborate?
M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
-
honey the codewitch wrote:
with a more or less true random
care to elaborate?
M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
I read the floating voltage from a n/c pin throuh an ADC
To err is human. Fortune favors the monsters.
-
I'm on a roll! *hides* No, but seriously I did. You shake the little M5 stack and 6 dice come up with a more or less true random. And he's so happy. It put me in a good mood. He learned a little C++. Win win.
To err is human. Fortune favors the monsters.
-
I'm on a roll! *hides* No, but seriously I did. You shake the little M5 stack and 6 dice come up with a more or less true random. And he's so happy. It put me in a good mood. He learned a little C++. Win win.
To err is human. Fortune favors the monsters.
This... this is actually beautiful. I can see it used in D&D when you have to roll 13d6 for a Fireball damage.
GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
-
I read the floating voltage from a n/c pin throuh an ADC
To err is human. Fortune favors the monsters.
That is pretty cool. I have always wanted to use the RDRAND instruction, but always been too lazy to get it working in C#
-
I read the floating voltage from a n/c pin throuh an ADC
To err is human. Fortune favors the monsters.
I played around for a project a while ago... I used the classical
srand ((unsigned int)time(NULL));
as seed but then the actual rand usage was only to initialize the three terms needed for a xorshift (George Marsaglia algorithm) of 2^96 period, was big enough for me and the fastest of what I tried (in the meanwhile I have read that 2x64 bits Xor-Shifts are faster with bigger range, but didn't test it myself yet) I liked it because I didn't need any external source and in all my tests I didn't catch a single repetition (played with it some months in my project).
M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
-
I played around for a project a while ago... I used the classical
srand ((unsigned int)time(NULL));
as seed but then the actual rand usage was only to initialize the three terms needed for a xorshift (George Marsaglia algorithm) of 2^96 period, was big enough for me and the fastest of what I tried (in the meanwhile I have read that 2x64 bits Xor-Shifts are faster with bigger range, but didn't test it myself yet) I liked it because I didn't need any external source and in all my tests I didn't catch a single repetition (played with it some months in my project).
M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
It's much harder to do that if you don't have a built in clock! :)
To err is human. Fortune favors the monsters.
-
It's much harder to do that if you don't have a built in clock! :)
To err is human. Fortune favors the monsters.
honey the codewitch wrote:
It's much harder to do that if you don't have a built in clock!
Fair enough... I didn't realize you were speaking about "Not a PC"
M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
-
You could have stopped at two dice but then it would have been total craps
If you can't laugh at yourself - ask me and I will do it for you.
She only rolls the hard way already.