The Random Page

2023-05-27 | [radiclock]
next: Atomic Clock

lol so random

As part of my atomic clock project I also produce random numbers (why not). Radioactive decay is a well known method to generate true randomness because no one can predict which or when an atom will decay. This technique was used for years in the famous HotBits project which is sadly shut down as of 2023. I have a radioactive sample of my own, but, there's a ways to go from a Geiger counter to a number. How does this work?

  1. Radiation from my sample of pitchblende gets detected by one of my radiation sensors. These are the "clicks" you hear from a geiger counter.
  2. There is a timer running all the time. When a pulse from the sensor comes in, take the timestamp of it. If you want to slow down the rate, you can take the time every nth pulse instead. Whatever the setup, do this until you have 4 timestamps.
  3. Do a quick check to make sure the timestamps are in order (in case the timer overflowed)
  4. Take the 4 timestamps, and generate 2 intervals:
  5. If interval0 > interval1, that's a 0. If interval1 > interval0, that's a 1. If the 2 are equal, throw out the sample and try again.

I actually have 2 sensors; one is a classic Geiger–Müller tube, and the other is PIN-diode based. I collect random numbers from each. I didn't know quite what to do with the numbers I collected, so I figured I would publish them live.

The 2 detectors are set up to generate random bits at around the same rate - about 32 bytes every 55 seconds. The full 1024 byte frames shown and linked below will update about once every half hour. Therefore, please do not spam us with requests. Also, be sure to check the ISO 8601 timestamp at the start of each file, and make sure it's somewhat close to the current time. If it isn't, the project is either broken, or you are getting a cached copy (check your browser).

Also, a most important note: the data listed here is published globally, not individually, like HotBits or random.org. In other words, it is not unique to you. I highly recommend you do not use this for security purposes as it it possible another party may have a copy of the data.

From the GM tube (hex format):

2026-11-26T13:34:30.065074+00:00
a69b6f77433a4ad38dd16960f42d55066a7bdd87288b86bd386b2860d8270978
282b4bb22cb7457b51faaf98182ca4baf22d94ef4510004f4bcb4acc8f94feec
fd13528c6e94c56eaf939c2b843f6b872fda15eb79a2f144f41ae3157f43f572
4724deeee34ee380ce3c4b2e3aa10d374ae231d8b2058552fe882ade4936adb0
3a2702e05b5836a1155136b8c96a8ceaae7300753c4f9509a16a9265c31b40a6
cdeceab52c9f65db44e8c5dd19f3657f8d62a480180d33409112097d7a441ad2
364f58468f3af13d368a4575119fe8c1858386aabd0deba5c42f6e6095dab103
2190050f3a505b25881e0458c605c9b575e5a66b3108835991e0479bd647d54d
a87173188e1f5fc6716b1092cde92afab7d67fcca3500c88b429b4f0452bf750
51bddb0af56e601d671b48ed839cb29f8014b0c81e26356fdb47c0324ea65fbb
42a756dba30660bb4ccc493e3703c7c427c75a37dc947b504768bf898979ca01
c3d72ab7381cca8a58d2539066011d5ea8cac04d244708acea2f3e3530ad6eea
5ee847ec407e0c549f82ccb56b153c165bef804aefbfc663b6f6519318eac1c2
f5e63237255cd52856fab73e6b67e9440dd2cab164d12f3aeb723048e4776a5a
5069c3066865cb6ce9b10816abec0b29ca8e3ba383c4f3b1eb2e424f5e4d142f
cf29930a9bb77234823168c18a97568dc95cc8d17363349b0fb2a92851c5579a
20641e3da6baa00a33ff5ed4997800e1e22fe35e4cb1064cdda102b185607b34
4a9ab0e63fe522524a80fcbc89634ad22c35af177003690605f689da547f19ea
1f7817bdc8dd0977c3e828a5c221dac7cad93650b14fe26324c0297a165d4006
8bac4aaea5102a9d7d5e4272ae979f340d88729119e4edca650120ddbbdeb8fb
f49014df5d170f364658c79ed5a311dc5fd91c779ed040b75bfe62a69ea0154d
7485f62fb495c80c6bf42b3e67b694a8098115f386a17530e191ec7abb9e9bef
91715501ff03db9660817e6c6e3dc0e81db2213c88e5ac01cc89e8af17ff6ac6
ed51116706a212b855de94c53cd07dc9b5aba3f2af91a0a4782f0543139afa75
26a1964ed8107eda003f2e6c4d02c83dda2000ec5b9d4b4ed9077e3a64fe5281
a9f3fa29630bfc818db347fb42e8e916c51fbb5eed04249a8dd3f91d281f3729
1233246495ade1930cdddac9592c2d2291c0de29c6d48ed2e648565ab8bb421b
533d51304c60e9b1d705251c55db261a6b720eebef3b025f5ce4269187b6aea5
9c37584b0e1320bbd5bdaadc9870c9e785bb11baa7e5cfa2fa0c0dc08306cb06
ad4d574f60bb491f5b31fba4c3eace64dfe1df58b1577359631a15ada67f51c8
c104ac2eb841ad85641eae2e67407e5aa113f6e8186fd1825d61ad3daf914f04
7ae730ba073792c4ca5a7ce94a18dd428e01c18901fe869a920d465cff581b8b

From the PIN diode (hex format):

2026-11-26T13:30:09.064150+00:00
a9a6fe9e82044403526f3c0ce96ed272b3e190ac895e14bd39a71172c84e5e98
a439bedd55a22320a5a12091b091f7dbc1deb9089479ce3899a1fe480c947ba4
889d258c58b6f5092788be42a7f1dca071a321e52941ad47141b2ea4f82b163b
cb7c12a99acef52c84af9c411df23edf022d9a4cfd4f639de0d01ed96f064fb0
8116c1f1b7be97863d56befe945c0baafdefd0052c5f60f59fbd7273f6e59c1d
f8c8913c0043b1d96fef7079d3ff63df4852d29a4cc79ea6c8f34e7dd8038484
c0c3d1f437034f19061dc38bb82870420c0ede0a9c337522a280cc43feb8ab80
909bedb4d6cb215876da941150150083fa43ed432cd790dfd8983d0a6b662a89
9f4484ad08273809e467aebd6a5d522634684d3f51b1a3842ac07ce1cf48bfea
2a141b4901667f1e326384161921265c30eae7f373eec254b0e8ebf8343d0809
bf7c2d68c56709637a5965a2a7dd13b4e73f6f72000199c661e95f9146043604
bec45cbf0c9261f057d59a55be1c76b9b5ed6af1676fcacee4800eb1151bb0ea
bd0c1542e5b9f1ac57875026131da6fc4a541de7e8b2af4f8264052403fddc98
a2d52a04c6e7d15280fe4313897a80160da3bd0d452ba8fbc09414fcd69f3536
9c8e1a6d30c655ba75de5bf68422962346ffcffca9a624dfb883026c5c9d11a4
ce30bb768bc235e670eb9e0728e5c89189d26d5fba5b01be9fe14d035d9c9704
4ea0abaad0eb139d0ee2c34053d070956362fdb0bb25c50ee63214fa57738d58
8f7ae5644bf760944390e5ea50b9c9244570f5dd6376e086031daab354b1194a
6326ddf6c2d0a2c4c46a98f7bc0bab437c42744a2b9fdc6354bbdab1ad5ee908
f6576db466a2ec23106ff7aff05609ceaa622ef62c3e3151dc993963fcc7bf85
0add6a7ac70c6cda66417e2d936cdca3b541d8ca957d37e158e42240050205c4
08f21422b08a1249f192d64cc9af18fe5f1847161db037ce9d024fce314b0dc5
c6dad8b27c7daefe73fafdf72968021f58fde4c56343baa6c0d17b31b8fde0eb
d73583e979d1f527e1e43595b6f0bb2fc627e21aeedfbc4ea816102fec9d2f01
010decd47b752b7839e358b59fb28dd82fa7c3ed75a88b1f052d4b1df9c5914b
49af4c4ff593d70416ae83146068bf74c55f80cffcb864938a4ef94c229a64ad
6ab93806bbbb2706d0f1493d60242786d2f83864f8b33c89d83d755450a926fa
d647b05c9ba0527e169c5b44ee1bbaef39914d89d147463f2b8d547d65865ebd
ce7d7e8a20b48586028f66fcfc4ed41874ad4f6ffbe0fd982eb2db16ada32de9
18a0b855874559064a52515e5be41b35c104102efefb156d399d7332e138fed5
62673cc7782b80457f1bec840de7964d4fc3dae5573d12609036d298b1d0f0eb
7b8a403b2cbe09fdf94fcd127e95c73582111d94846279c08920232672d32e13

Ok, so you want decimal digits instead? I've come up with this technique:

  1. Look at each byte. It's a number from 0-255. Throw out any samples greater than 199, and we now have a range from 0-199
  2. Convert those samples to a 3 digit string, then throw away the first digit. Now, we have random numbers from 0-99
  3. Concat those strings into a really long string. Now, we have a sequence of random digits. But, the string can vary in length.
  4. To deliver something with consistent length, I can just trim the string. But by how much? Since the probability of a skipped byte is 56/256, we would expect about 800 of 1024 bytes to be usable samples. There's a 50% chance there will be more than 800 good bytes. But, there's about a 99.99% chance there will more than 750 bytes. I still double check to make sure, but that's what I publish. Of course, that gives 1500 digits.

To determine where to make the cut, look up the binomial distribution probability. It's already built into spreadsheets as BINOM.DIST, which is what I used.

From the GM tube (digits):

2026-11-26T13:34:30.065074+00:00
66551119675874410596458506062335403934895607409639
09204043757844836923817552244464864548691600797574
43481982401048971075475643326307354721216268262127
67147136782860754658611355744978053382364273547376
58390291885461218154840640741500176079490961064601
95276466814459016897250127419864282413516445180925
22682654798870435861543869171759933331347089136596
47109649770333440515588091373630048898058117660749
08318945715571776813152442319598130716464283276380
12368041806943808189101096290327723156785928207630
38531171925078669587666786630696877673625503999639
99905548238071049137372101954283562838888344020129
94689277367108724762534873109471642612845930810721
60229128749198998281472493945055379240868362070368
13770047581448721906908005950604010877082271114142
59633196774666799477204741471055831452304904933851
86419215995255157869408197875432003061668660105194
53200047947677067661027733962352745476633482742888
37997444537523120305060537842725312023890919954065
94339954807779993692412222936406397274746516425725
94661474515952133614452501013287844420932315547088
99586317952819586483919866586021771633478049120743
62038248680929213461174845228758554513850103509629
26081061922978336036720137752306988117030662188485
48976025817163754560642047056719541738615078162600
63460877026132009157757807265800822969419911294179
71662297318794043654412940315541185136004973471289
44453445924198427286908487662783618148769677053728
85382607141459029592384535827465565588751419328789
70521233871786676212139231060673778779968773319149

From the PIN diode (digits):

2026-11-26T13:30:09.064150+00:00
69665830046803821160121014794472379420895767171478
94526457908562353265613245764593850848215653617212
48236436573740888209393690666760136333416573712027
46644322592418695444327556652962024554767999573011
06797629229383905134618690489211700544959659891415
56294560006777111221997282547699586678250332329295
55037925062995398440126612141056511734622867847128
44558033881848178021003167674444526110070242375968
32730839560903748906938238520477638177633242922472
91422027730102273050993222253338924815948476526108
09912445049703099922890162671980631114000153989795
45700454049096929112469787548590281885810603112814
77212776891221668572873580381929667484297875793000
05360352624204988228671937222822136389136943689248
20595354564226094898858617913234503570696636843102
08925717644887183994531258074045370995869101905977
03935651047860717019571495648312499998768737971450
20871541884322007596486744808536691299183403297079
84772574993894629696065288117167246616744359998487
77739408870980026235161175860970984644624981535799
99913310062299120802652645470863816549255588346405
02059608203476381873467675249524712229765557027949
75139798782425741541040231889799678666922349845331
21395349828747983926887868221647574701011323174320
57888159784147679517683931054575299745757375767947
04227431209604911697952884004738787634540073068556
06878739067361963639345600796037611784806938717692
55608226225691682786574577377170634341842501349489
25263832803334024302782416737911524678227363452460
84853569890674828194912753930416462109575715505698

Or, perhaps you want just the raw bytes themselves. Just make sure to trim away the first 33 bytes which are the timestamp header:

Here is the python program I use to generate the reports above.

comments | patronage | Alnwlsn 2026