A quantum random number generator with a Cold War aesthetic.
A quantum random number generator with a Cold War aesthetic.
In this clip the Chernobyl Dice set to continuously generate numbers in the range [1,26]. You can check out a longer YouTube clip showing various modes of here: https://youtu.be/8uue9Aae9ss
The Chernobyl Dice is a quantum random number generator [0] that uses nuclear decays from a weakly radioactive sample as a source of entropy. It consists of four primary components:
Geiger counter events ("clicks") are converted into random bits using the following algorithm:
The uranium glass sample is illuminated by an array of ultraviolet LEDs at each Geiger event, which makes them fluoresce bright green. This has nothing to do with the radioactivity of the sample, but it does, however, look really cool.
The device has three modes of operations, which can be selected via the rotary switch:
Clock Mode
Displays the current time, with the Geiger board unpowered. The time can be set by flipping the toggle switches on and off (the '16' toggle increments the hour, the '8' toggle increments 10 minutes, the '4' toggle increments 1 minute, and the '1' toggle resets the seconds).
Streaming Mode
Repeatedly generates random numbers of a size specified by the toggles (or random bytes from 0-255 if no toggles are set). Numbers generated in this mode are transmitted over serial via USB. This mode also has a "turbo" setting to facilitate statistical testing, which can be enabled by holding down the pushbutton. When "turbo" is enabled bit generation will be indicated by LEDs in the display, and the Geiger "clicks" will be silent.
Dice Mode
In dice mode random number generation is initiated via the pushbutton, and the size of the random number to be generated is set by the sum of the toggled switches (no switches are set the device will generate random byte in the range 0-255). Press once to generate the number, and once again to clear the display. The size of the number to be generated is displayed in blinking digits.
Further testing is required to confirm the consistency of results, but currently the Chernobyl Dice is capable of generating a 1.5+ megabit file that passes a Python implementation of the NIST statistical test suite [1]. This means the Chernolbyl Dice is likely a very fair dice.
……Statistical test suite results for two 212667 byte random binary sequences ('rand.binary.1' and 'rand.binary.2') generated by device. EXPERTS NOTE: The last two tests of the first sequence generate the message: 'J too small (J=181 < 500) for result to be reliable' so these tests may be ignored for that dataset.
The directory statistical_testing contains some utilities for assessing and gathering data from the device, including sample
random binary data files, rand.binary.1 and rand.binary.2.
A Fusion 360 CAD drawing of the device can be viewed and downloaded at this URL:
Thanks to the following GrabCAD users for their models:
WARNING: These instructions and resources are not polished and are somewhat untested. This is a project for advanced makers, and you should fully expect to have a bit of an adventure while building your own Chernobyl Dice! That said: Shoot me a message if you run into trouble, and I'll try to help you out and improve the instructions as well.
Here's a rough outline of the steps required for assembly:
Print or fabricate the following custom parts from files in the GitHub repository
Order other components (see URLs in the parts list)
Embed brass standoffs into enclosure (this is how front and back panels and custom PCBs will be mounted)
Assemble custom PCBs and 'exixe' nixie tube driver boards using build photos as a guide
Attach the acrylic back panel and panel mount USB cable to the rear of the enclosure
Mount custom PCBs inside enclosure and perform wiring (see wiring schematic and build photos)
Partially dis-assemble rotary switch to attach it to the "lock plate" (lock_plate.stl)
Perform any necessary finishing to the stainless steel front panel
Mount toggle-and-PCB assembly, LED-with-holder assemblies, rotary-switch-and-lock-plate assembly, and pushbutton on front panel
Perform wiring of the control panel (see wiring schematic and build photos)
Fit the eight nixie display driver boards into the female headers of the Nixie Display Board
Wire the Control Panel to the Logic Board
Mount the front panel to the enclosure, taking care to insure that the hole in the rotary switch lock plate lines up with the upper-left standoff on the front of the radioactive sample holder
Standoff Size Guide
| Location | Standoff Length | Type |
|---|---|---|
| Rear of enclosure | 10 mm | Female-Female |
| Front of enclosure | 10 mm | Female-Female |
| Nixie Display Board mount | 40 mm | Female-Female |
| Logic Board mount | 20 mm | Female-Female |
| Logic Board-to-Geiger Board | 30 mm | Male-Female |
| Geiger Board-to-Bottom of Uranium Sample Box | 15 mm | Male-Female |
| Bottom of Uranium Sample Box-to-Top of Uranium Sample Box | 6 mm | Male-Female |
| Top of Uranium Sample Box-to-Front Panel | 6 mm | Male-Female |
NOTE: For large internal standoff distances (e.g. the Nixie Display mount) two standoffs can be stacked to achieve the desired distance.
How connect the internal wiring of the Chernobyl Dice.
Enclosure with Standoffs Inserted
You can ignore the white breadboards on the left of the enclosure. These assisted in an earlier iteration of the project and are not needed for assembly. Click here for larger photo.
Logic Board Mounted
Note the wires for UV LED array are run beneath the logic board. Click here for larger photo.
Nixie Display Board Wiring
Click here for larger photo.
Nixie Display Board Mounted and Logic Board Wiring
Click here for larger photo.
Geiger Board Mounted
NOTE: You must pull the JMP2 jumper near the center of the Geiger board (this turns off the built-in speaker of the board---we want these clicks to be optional and controlled by firmware instead). Click here for larger photo.
Uranium Sample Holder Lower Half Detail
UV LEDs and piezo speaker are glued mounted into place using cyanocrylate (superglue) adhesive. Uranium glass marbles will be held in place mechanically when the top half is mounted. Click here for larger photo.
Uranium Sample Holder Lower Half Mounted
The middle standoff is attached on the underside with a nut. Click here for larger photo.
Uranium Sample Holder Top Half Mounted
Click here for larger photo.
Control Panel Board Wired
Click here for larger photo.
Control Panel Board Wiring Detail
Click here for larger photo.
Many thanks to Emily Velasco (@MLE_Online) for advice on stainless steel surface sanding, and for generally being enthusiastic as heck about this project.
[0] "Quantum Random Number Generators." M. Herrero-Collantes and J. C. Garcia-Escartin. https://arxiv.org/abs/1604.03304
[1] "A Statistical Test Suite for Random and Pseudorandom Number Generators for Cryptographic Applications." https://csrc.nist.gov/publications/detail/sp/800-22/rev-1a/final
No open issues yet, or sync has not completed.