On the Subject of the RNG Crystal

On the module is a button, which also acts as a loading bar, and a few pieces of text:

  • The top-most reading “圧倒的運っ•••”.
  • One under that reading “1”.
  • One to the right of the module reading “運否天賦”.

To start, hold the button until the loading bar is filled up completely, then release it. This will start a trial. A trial consists of at most 11 coin tosses, where every toss must return Heads.

Alternatively, hold the status light’s position to enter the state in which the upcoming results of the tosses must be submitted. In this state,

  • Holding the loading bar submits Heads.
  • Holding the status light’s position submits Tails.
  • No mistakes are tolerated.

If all 11 tosses result in Heads, the module will read “神運”, and a crystal will appear at the bottom-right of the module, where the status light would normally go. At this point, hold the button, following the same procedure one last time to collect the crystal and disarm the module.

Otherwise, the module will show one of the other fortune texts. Try again, you might get lucky this time.

If, however, you wish to sacrifice one of your experts, the next page will contain information on the totally-not-biased coin.

On the Subject of the Totally-Not-Biased Coin™

Embrace the randomness™*

The coin decides its result based on a Fibonacci linear-feedback shift register. It consists of:

  • A binary register — a sequence of at most 24 binary digits, ordered according to when the bit was calculated, which will be referred to as the “register”. Any extra binary digits present after the process detailed below are to be discarded.
  • A set of positions that influence the next bit, which will be referred to as the “taps”. Each tap in this set refers to the bit in the corresponding position in the register.

For each iteration of the process, consider the bits in the sequence in the positions the taps represent. Perform an XOR operation on all of those bits, and the result for this iteration is outputted. Add this binary digit to the register while maintaining its order.

1 is represented as Heads.

In the above example with a register of length 10 and the taps in the positions of the grey-filled cells relative to the cells with a solid border, the bits in those positions are XOR’d together to produce the output in the dashed cell. Then, the register is shifted as shown by the diagonal lines, discarding the latest bit as it has gone out of bounds of the register, then those same positions are evaluated once again to produce the new result.

*True randomness not guaranteed. Please see warranty for manufacturer’s details on potentially deterministic behaviour.