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-12T01:17:49.230192+00:00
a7628bf18241f7b461bd7a4115f5a4ddd22127f5947e1fa0a1b824fc94f25659
794ef0207c82e6a16b9f22b48857c19982a5f05a5fb192e369515c762d190334
d719091a194a07e23262027abe7ddcd8caf1db677ad610c382eb21db877df7bc
5eb48692e8649eacfdf65e9cf041e4bac9e15306d79d5b736f9043caec74b3ef
41742fe4a99c519aac5793c80087683d0e06d6629985d107526b278487eb1e70
9a9ec94e75d8f7e769de66f46768189e5d4990e44e22d3dfc7aa462f2801a059
01b5a1bdf6cbfeb4957d8e7e7762f5c21bc4d66b7e2f8c0ea945d6d60ec8db24
13d158cce20052b6c186b1194d18fae5e8e8fb486d236cea1fe6eec20b766f26
27be27e50ba5126848a51d655ee40c2a23c3a5b2cd6b5c11dc3e546e20b5f827
0e78317c9fa62f73248417fc929af0f49892287f91b352963743b6a383b6935f
d6b4de2692d3d6636f501e53fde04b0fe68f95018e5bddb126450c47bfb9955b
31ceb039824dc955ea06bf23c495f9614ff7ff074d1ed8d16e508e003f58b08a
47d530ef25acb108da877a3e85186a4ca0a15a709bd6153339e4217780c481ee
16d0117d8311e35a9d05c2394f743760f196ae7ac6444d5edfc7a5267cae1dc6
76c5cd7dee39e38b6b0a8019783fbc19317bc8ddf3a7015eca73df5d51d5fe96
8a926407500b86d14b8ccb1d087726143f2c0778f1588b35e966b2226b0ddd05
df9d6cfff52c6832b0a4639f8b25a7f11883fb104456126a115abb02218267a9
9c81e429f5a0ff4a2253c99f3851b42225444b8ea6d1a0faf7871417bbf10571
6a5eaec1c651c637c530382aa20e0d5f699efaaa5c6d00883796b8ac92cf5aa8
e47082f5a019d951e1590dbccc685d7dae4869af6fe25e597c8222d549bba0b1
30e4af5db7fcfc7702c29fff9236be84f39f5ae7be052de48b983789aac8c211
1819fde7f13066a9befac690141c1ea7e085a09700c07c167a049f68d2b87aa0
4e14b1c16f5170afc0f0ac3b1d44eab36f8839b0226f5712cb8bbf04e58592d8
86413a7ef521f636686ccaa8fe2fca532898554364e6ce7bb49de3d1ba89e2b7
fe6bf2b5ed160d5add84c47ad2c6fa9681bc71bb63970f02a9ec30e502c05a15
437b9324731502e459d1c2647e1b8cbcbf3f83f39c173f30e9a0e1c02d0488c0
c1c0976de656febfdf08aca9066ca66f95b3b6abd75c0ff9bffe3b13045bbe23
30cb92fc2cdac3e2aa97256c8142deaab39ce3cbce85789aa5e3b6f31a1bd3ae
efcb61f40d2eb331310906f4764aa1b78a0a653f9cc4495cd54e24d63178d7c9
b4eba0998f6b284bc0ec1716bc29925e7445ff25a3412468c9ddde5d9215903b
a912a59d630baf7830569c8a1ff74c7d340462cca5a3011019c1ee37ebf5c709
e45df87a91b6c634eae0a86766b71afa05e40b8db9215bf905f821bf2debc174

From the PIN diode (hex format):

2026-11-12T01:16:18.829498+00:00
e9567cb9588647216c5d5ff049edc42f48138f6462444948cdcf9977583e83c1
9c486bad1b1a39a37e3a2725f9326b0d9862d08d4996b30eb4eb520901330f30
2d5b097f774cc4ede653654660f4e132d9717b6dc4b73189d09f0d0990f37356
c842d807eaad7ee24f626ecb32b351b05a7bee83ef28db646d697ad8d8d9a7f1
9ef615e73bf6ee6051a09bda4c4f394807ba9ec1fed4e315f616f9f88e2ef7d6
e954b41389d6d9631e471bad85a171aa111ca0e9ca1220246ed6d6a1a3ade354
a90dcf35af1a31fbe5a01c6a60d7e6d65395130a1f68d34a1bb39eddf23495d0
189804c386c786b7e107d7d565a032080279a1c348b5971fb71d806ab4065b4e
74fb68bd032617021094c84411d9f262b15df78a7f4db5e4a906bc69d0a94016
603d363e1ddda4b7c670fcf0eb35ebeea98f58d3832a0de7d423c6b9658f1d5e
53b3925a3b730be46f97902ce51e14aa6cd21288ffba3f56cfd6c165f499a98d
de34304b5c9b50c8bcda63509763fa48c9cd06f340aaace3e2fb526ecc1096b0
8a7a49d5e4872ae1d94150270962783f448ecfb77991e749f61241f0894d8e6e
21be667e0749d5e5358ae90bb66492939ba13dae9b4437a6b2c1148fb17104f1
f5dc90bbe1a70cc1f9899298f811fa3d3e56bcd431dfaa19b473e2eb18ba8b8e
06e3a98030957f82a8661502742bb446481278e75511b8deaace335c9c0d346b
865bf99ac017bfe60099ffe96b210cbf46b39fbf933cd3dd805bf95004735182
dc2281ef2191aed660386e3a19b2faf972708406a073b567544d446a37034d7d
11aa22c688ca8e0f17aae7bd6f892ac40dfead7d2f51290deb9d70dc5e789229
8dead08b82ca972f6a0ae956f0e175d7109384b7a3edc541488f46271f91a60d
df9b4081de39af1a5b7304e4812e6e825c7b0eff55f7e4ee6fcbc955b65c07a7
97183bd52aeddfe92b9033b7582cc5b22ee7eb651930b5fcfcad3ce4bce0332f
57fdb7008b7159684fe3c022e5b069cf03608c1af5ae7c32dc7254dbc9961193
948a0428fe9315dd221aaa50362ebdbada07e97c214c9c32b489f92c97abe663
14c73338e6618f12a9e82f15ed83d5b4e7bf4ba372e84df6d26e0b0e7b3855b2
49caca48d406635bccd0dcb5e60e475c693d9d5b19a7e7d3a927a9bf7bfa3d47
0aedfef7d0e5bf916eb0338226139bd32af649a06d00befbdcf90ad0c2b3b6f2
dbc072cbe3b1b1efd93c344e036a18646ac73f6b709c9322f148812fe489d22a
64b9b2de6d763563a141c4f1dcabc562bf6475a256407304d8e9409ce0459f1c
a12194764680012d8867fd1b4fb8897f518cf4097d95669f1a2fa8913f9bdcfd
c56def03b6a9dd35a5edb4319710dd9a608a6d885bbbaf16cdb41b333841af80
454b587200f3d99eb1298fbda49e22f4630edf2255123552f9a06f38b6645ebd

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-12T01:17:49.230192+00:00
67983930658097892265216433394826316061843648868921
78322430610759348036879353306590957746058192184525
03522509262574075098022290250322169530333525889480
34460058729456658683065791151144671679651647695681
54728747003504611406985333078207393235301254587817
05020304245893734478349970704740016089018161898049
25422619989427960726474014696914361988008282933477
25772472093508319411181138399039116518047265290194
12423595657807921762841032813914204924596647153632
23465452464027457982505567826331824795803846991180
30837515434901429177386912719185499149765730778506
91359649977907773010804200638876387148377277083522
62332406766061901255215157331928962922172531179057
05945779165596507422986877949965382474299818972557
39071028252063882549236701941593815038460007801134
75402908193820634407208839530278340713055708440450
76649959393767243116688618061790870233300369562941
60743483595681803437687542666035202387051306947493
98819855974856426214139505587092090036555084724690
68123060258189138804932574720575119489243034738760
77487593831902945946549032599090054539525537709417
24254802699098442028306733605100922422220459048422
60782077931181127592725929687911365776341187183991
04334634655826335404086847834052856700238057863783
07812213903296229850298813879951150269480292902167
23473615210289940026274088916331562363486092450436
92939251098691087269060866114979827192159159190491
90354846449570513708296670795633205465822627749713
46794949090618746183381001635696739278364920806053
43074075922322884146941669376365360493462144596918

From the PIN diode (digits):

2026-11-12T01:16:18.829498+00:00
86248588347133089395739647721943009868737253198862
31935672077327265763265839375007135298417350791480
82090151154845910927197696830170965013230996834937
59130944158666077326799810507981769023314000090522
67582159968160557679577207865893212242468480193799
30712773336113701728601832361061637384691353752649
60280696834919103104742779585249245204953499348307
01605008022161957281513183292806800691781604890338
23021648681798779338277781690688056964229661546229
64839812536943883142133598850143299483794690591511
11514444302070081836866386930153694152487592558088
99805199720664707282101650763822733542658039099820
63684283214573186537774210339002260773533811820046
47556161745568556678932043771304448767129337465217
61628688497025801524863942066928484927306802210216
43807072182085178470519256135207349154922391005307
33129170795991476028918004158130342933457496561058
25781412320660158103847768065503772517703498364215
23708911374296137325478141135712942046414139305147
06108617164732836397657243703931456613556429577526
91150429461030922314851185829207675124594243445183
88449778460125488173608851478783003913890479923476
05039640267424501484501747483804404721342670805446
89860724337656508037445171992099515697431869472131
80917563147710111423568578737206999181147192056157
91256769396991236171109145107651303819554273600900
90109479829214777760527803062400069963071256473472
29473742008578091853996165967197989100176286641504
64566959286133481870280145360327798437278140092549
02592647684563559709038269536580495116549638093691

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