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-12-03T14:02:44.912073+00:00
ab71df06c79f039381747a73e5b1bf216950436b7fde4cf03b05845df9a0c150
b599bc65deaef80d4fa18a27be75b07373d9257d46993b02ba4cfbd3686525cd
2547f750ef37cdda6e4bffa2140a29ff6009c0e35419f2e9e56f2f7106ec5a04
70574f65bcb5acdbecfbcbf0602ab75fc1063b8582748016c983f9af363f1510
1bec9e53e4ab4fb3c27d64de25fd6c20af785c2d9094a1d8ee357dec7b8954cf
929c6eb1502089fa0846b1eb1eb649e4927a70f4c1c54b21cc190a6d0cbc5e45
d273b3db11085539541fd749d2f8dbb4c566c865e5c67ad4ddd90a303f646346
288c75aa752fd4cca4e55ea2ba071c6df7a9b446380d19100b28c7984afc9507
a3dc075346337f4756a0368567bb2d6a99100c50b8a13ee38e2b5438fd9d95a5
7ccb81d634c4f81db2c244c7323353a37524f8352a86a9e2e940b535cda2da6b
ad74ccf9bf9bca58f5d866ffba856e16461ac25da50ebaeb705d119e241cc8e3
725dbc22ecd5b8db541f13d19fe00341b1bbe5737a747c8e3463324396a9a19d
d53152450a9fff213c0feb895f357a33ef19fa34a8d6be7b864616475aedb789
9dfc89d8250d34bfc26ec6e0bad223be24f6a72a021611b4816561901586f80c
16d958cff5c98f5ab1c6b69d095f636f57f9abb3dd2408381b2cb5b17338bdd5
191363eb0ecdb7d78e618e0e6888dab39fe83e56e37c2b7c0a439067b6c87c94
7d661f840c26e1a20d5311c11e6a65067d344d5f73b240c6a0aef0e580c47fb2
89c689336ea620056e38288e0317191cdaa81c68dbda4f18651f0c962bca9da3
913c680cbeaaa9022549ef726ba6b74da4e21b3f16bc49e9d4f713ddc5581c3d
89d3c663d6b804149bbb435bd6c78e41ebabaf18aef9e843418bb6160b2d5adf
da7b283b3ceb82c0d2338003e6c0113410e87c3c98340f034c47822ccb80037e
7fc8e503945300cb4786177d2bf9ffd6fb93083eb888760d675ac43362439f56
fdee8e3b10190d046991cbc5f612f63246f634908dde0ddfbcd14c00a6ee8ad9
7b948073159bf8da042d69ec43ba82fddfae0a794cd7bbf7db905c482bdf9745
166ee5d073b869d20e42ebf796caeb8422b0f97f23b1406fe2d14fa79477ceae
d3159062d6fc5f05a17232ba9973a5a01706048b223f56ca8fde1e3b3a25efd3
270b43a93411f24b353025d39abcab9e63461ad647eb1cd944f7e2a347a4894b
f1cd755404091af7b7114fe3890109b57c378b792b714e4dc13c38c172a78ea3
b2507c84fa84cc46a68949e06929d80913e65082335a6d2db756652c1d4e8bb9
ecbf6a2a4b9fdf6fa2e958da2a4dce24b779d0ce814f3e67a35a4b398791adf9
9ed5d33a55f9315587239db673e947abe3f3c52fa7f65197ba1cd1c3a8805e95
fea43d406915e7812ba5bb3ab34729f3248658e6a8890c8e1d0b7a103c2e09a2

From the PIN diode (hex format):

2026-12-03T13:56:53.710112+00:00
36df7c7b027a9c793793c3e1cb8ad4dda08845cc2c0bfba8d832ba672ff0d338
644518a791e45bb34e417146e1b9a3775f9aaaa86c82b084a99f813a70d7a926
f7e6cdbbcba19e828a4ff2dd40270efd102003ba320287a1136b2dc3ef33b00f
7e8eb4c8c8a921f4cbc5a13bdef9f61a3f789d8b0191a199cf33ac73315a28d5
1c82f596e1d5094f52c60254056c7f5eedcff04cc63ffb03c1353842fe989328
b234c6db2cf4e37a866be33e4a6940f1590000436e1299fc27fe91052352faca
26db48ac828421250ac66c899f515c99399043de6b59fe60914ca7a841d46278
2731bcd1084b46394c6efede53d22603e7194a8f2b3ef4a35b84d9f53b641f02
00b6d567841cc1f887f9e9683dc872a932982a9ef3ff9514f2ba9c3ed2f0df0d
9c3161d8087c1a1b5cef0cab39edb0449856b61b8512a70c3d82e4f5d1f41392
d9a8b46356c8e8422261437e7b37509e79faa2d0fc3e0501bcceb4b47d541a4d
bd0b2ff2a34da1b21acada7364ff31b37526faab1f5d65d85903cd3cd5c8a5a0
d1ab7d3115bd2c403b84f397bf26b12a4e2baeb2837f000105d163d29d56de85
f0dc383c2d4829ae481180c70be29c6611c86e956fc1e4fda0dcd9d16016b1de
46929e5bc5ea528ed92e82d5754a777ec34389fc6685fc6f39af27873178efae
096c73f5e92d4aeee0daa7cc7efd84bfcd2bb81e9d0ee0c8709b469ccf051b79
dbfe8952b191aa37693d382065e23daac725892a578f0339939f064c37026f17
85db76618dbb20843bed0f2fe2f8c667c9b96f178c87858152b00d41d41e8dc3
60df905362f7445808e21f7217c66cfe8ad6183eabaf8020490743d1cd690d62
18bc40cf24780d6016e1bdbc997d713625900954712e3d7b793764be6b140818
0b3ee14607938a328d9a934f6146841bdd6b314571c12c374e23f11d129cc857
0a4394c7abaeeeb4240ce56806a25b13eb305b0cbc7cbd5a1064f482a8866b2b
119a585366264a05fa222b1c717a685f06899817b46ea43caa398b13d7d36bfe
ae86abed4b0d1f411b0af9807ab406274716812f3f4f197270e059539b4c6ff8
02aef6d3f33bc7fdeda71012c269c08d3c16dd633b5f1b1d66a7ee594b460740
649e5f8372ffe2e6af17900c2791749c37fa6ba71a9c72a649d612356c98d1a4
ba2a3f30045282cd086e735cc56d49c1d0f04e32f3695a44866f6709f193c8f0
71d185a55b94cba4d05c3ba4735b04e91fcd53b259bebcbbdd3ddfa90446764a
4633053b4e9ea1c1124ea47118a753e03199a9d931771e7719bd71629dad3a8c
ada321d55f44f3b56715c7139ed8b249ac78b4aa606cb8708086a9575e8e08e6
ac8b75229a1f6ee490f5f094e8a3b06d4e91bc0227b9c6dd810248c0fc0d4e7b
f094b881dcdaee037da12ec61229627ace4ee695f29c21f603815505a19e1887

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-12-03T14:02:44.912073+00:00
71130699590347291622157791330580670727765905329360
93808153880174137961383990177615153725705359028676
04013737718055107562201041960992842511471306900412
87790188817296428395930659333016282231755463211627
58837179799425003708327520924544486153252337844656
10778032370870773082734622129397753325100912889469
15791708855784317380970201982210486300997040401770
17476494628607280969807056132516114099527449076307
83705127718660543303874506531612808461624243845657
49652429529629789468995051836317365342346964815362
07731691558802863310227026949365148612931758362814
93883484843119590365778715221624425299506750696157
49826910593360153795532251255268902334702271908337
57373713529194109886359036674202221780290197442134
12228843907798825709959911877179360856274481771556
89251999148342974214043679596286244324106744038224
48250231321238621383179330060106255277951578649860
74289627783798375110663205105640420323252868280479
24013112504357634560041290706902377314076683776427
63228873199788286137989984042055876791994265717524
74676539822211459023405960309251280392175216246052
52150376713044280326270348830071342325434708628436
18130390965198675986425916251304054597185070524441
13887600663823482815215504450567863074102176874492
72435169221015840514665032347627357764117967481974
21449895056114508653156560230604393463864330595837
39116769521775534837548871589970267128686371643775
17840409268317793701098124553921431378779360569314
67426378802432327066377305410919803051900945838601
44297839859106427559116288427736832129796203639075

From the PIN diode (digits):

2026-12-03T13:56:53.710112+00:00
54242302225621554795386036694411685086034756006924
67459179786513708563199554706808307632695929581269
38876158303879643914163203865002356119074595517615
26428069339761592663205739014561535172154990402830
50097982980284050827947698630393535666524740785298
44223407627405648900006710185339450535823872723032
33371098083759819253574467078996457667686598203949
88087570577610833803257443436263913259003102008203
32289335046114695052425849208656621356499708242627
92127157766852868227331867126130194668809986663497
67262355805821626205018880802584267789114763776178
26150049791738713193018903606560712549218944645932
51913877427843747831270001059957863356604572417472
17289911560217104911936096227770465891978242463017
74192695673702331157753935492074090815457467263291
43843057141255705605272137827745705505615632016170
99373742874303574759067655021123331897418732325915
47980385112340353329827613653041959644839868880831
14239808382462717528327307670513982488643620139622
89885325135437440984134661232155009007200824116270
07473850415447799770322707496913934455783529185687
10674899717480361204066291194891128824899016003068
34074317548883023874053443281322049506375223801064
60705739190774347175133165271028228006397122294763
79251412898355761102745999671618940592416022995995
27290267897570076400589531147523441239451656550767
26561466731853085264864263480482300810159297097393
78500590683411030947133365914864925964159104318378
89908887616904701874705105597858619318786413246783
49536949193019258913985773584073633395688103219919

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