Digital Dice

Jul 22, 2020 9:51 PM

DanBranDaMan

Views

27610

Likes

34

Dislikes

2

I 3D printed the box/dice, used an arduino nano and built/coded everything myself. No more dice flying off the table or hitting board pieces.

3d_printing

dice

electrical_engineering

managablepeciesofflesh

arduino

Nice. Is your code available to view anywhere?

6 years ago | Likes 3 Dislikes 0

Would you be willing to share the code?

6 years ago | Likes 1 Dislikes 0

I want this, but I need like 36d6 and a totaller at the bottom XD

6 years ago | Likes 1 Dislikes 0

That's pretty awesome

6 years ago | Likes 2 Dislikes 0

Thanks!

6 years ago | Likes 3 Dislikes 0

Now you can weight your dice without having to use a file, brilliant.

6 years ago | Likes 9 Dislikes 0

Yup, lol. Even "random" code isn't truly random. But that plus the random hold time make it random enough

6 years ago | Likes 4 Dislikes 0

I’ve imported random in to many a projects. How is it not truly random 1-6?

6 years ago | Likes 1 Dislikes 0

It has to do with the way the code physically works in the microprocessor. It appears random, but there is a pattern. But that's more a 1/2

6 years ago | Likes 2 Dislikes 0

Computer science thing. I'm going to electrical engineering.

6 years ago | Likes 1 Dislikes 0

It's pseudorandom, it's derived deterministically from an algorithm and a seed, and is only as "truly random" as the latter.

6 years ago | Likes 1 Dislikes 0

A random number is hard to define, but an unpredictable number is one whose shortest representation is itself. Counterexample:1,048,576=2^20

6 years ago | Likes 1 Dislikes 0

So thus, if you can guess the seed, you have a pseudorandom number. A cryptographically secure pseudorandom number generator (CSPRNG)

6 years ago | Likes 1 Dislikes 0