Wednesday, November 20, 2024

[vyakuwax] ordered dice

roll some dice, order them by some metric independent of what number the die shows, then read off the numbers in that order.

example dice ordering metrics: color (ordering by rainbow), size, number of sides.  the last one provides a mixed-radix random number.  previously, dice with two digits on each face.

rolling a whole bunch of dice all at once is more efficient (and fun) than rolling one die repeatedly.  (more efficient until the (log n) factor of sorting dominates.)  dice collisions induce more randomness.

ordered d2: coins by value, size, or year.

ordered 30 * d20 generates 128 bits, assuming they are uniform, which is not a good assumption: d20s are likely not manufactured to high precision as casino dice are.  ordered 26d20 generates 112 bits (Triple DES): give each d20 an identifier letter.

or, a funnel which forces them single file.  cubes might be best because they pack.  funnel by itself is probably not enough.

(then, feed the sequence of random numbers into a hash function, or seed a cryptographically secure pseudorandom number generator with them.  even if the dice are a little biased, the output will be pretty random.)

No comments:

Post a Comment