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-03T20:13:09.791426+00:00
02c150c4d0278ee6e54b3776b32a13a08fe93de0cb219d98e78080419bc5270d
d1a5f5f9b0142397f42671c233708de03a1f33f57315de5c129907fbd1808686
7721d9c170d014e19ab5c5b5b4bc5aea42ed9d84523243c4405401ca44c5a33a
799c19e217678f8f8f97ef4e63fa757e327cc8147cd7c45f328e8a0eeb74e0a2
e6defe67e904a926394fb676284ec539a4a6821886884d4b4d389ad38ea7afae
bd00b2a7a7eb87eced5ba25eaac99586a03b9918569e81bbc8fbf48b9172ad23
44fe0b3a1095f7df0b6530e44c8d358a8be2be3a5509385ded28cffaa7addd34
ba73cb4de05a9701d9da0e09035bb2f92bc972733f6a0cc62ccd740f155e629b
1ea7dc33e7a3f232d57bdc22ce1c4881131520bb774852747548a87765093b91
8ae61f637bd75f6c22bf07aeec69aaf1b210c3ed9411b3bcf53c34df373fcf6a
dc972d109d4a5d7190a2e65320073f2109993aeb21f6ac9f1c1e39d9fe7ef5c9
5e1d01cf901d9de28f88e667520eb5d744ceb28e29434a1448e65aa1d478cd69
998ef3de930e4ee6b5f851d6333702896b2beaf3f8234853e62a9bf656c3914c
879b6fb352d97b19db3a1ae2a6a56a9098d0ce77aec7921a57cdf98db5733713
97b2c39cd48548da5cd5c01cf7490a392965cd6bd1f33a66a601ad606cc605c8
7156ba588336c4da9823c259c582854fef816a47b9e21033f6bb181560b3227e
44e28af384b5ff96181ed4dc1681de1c8682209fd36cd01b601d3792e820344f
7e3b4e2a1dd24ef3a43022a6a180a5fd6b526967b962aa6b3e8ac7b00a48d794
eeee072a7dd3ec08e702820d5a50e7f486204631b8fca8c6c4101926c8996392
4c185e4c668242a89eca46d09f045520210138aaec732f1979047e38d8405d74
4116435ce807f44b7fb71ab8155c3f775f866f5d7b2845bef5af6fb88d8ca156
75ef74177c2a9b7d24a894ba138ad1cd03f08e4c7e8fd578bc4f907b38c558b7
50d170c691fb078cfcebbea0f43000cfaaf25da0804fe46c6975650f1041af43
b788a5db8ef35d969fd1a94e3825d05e44c70ab0e2d36c3f67812c9d50b37bf1
366082e76322786c4941160d708345c7e1c5d2a350f0b064d301a8627ef3d2e3
1609b12da84e726fd268f81eeae4159cf51ac0894d7ad057bec7c9a202c4249c
fff947acdcea83e36982dfdfb22103ae959c5eea4b805afd3aae8e782304c567
ceeaa35026e1ec95404a99a3b4bb3048b7f2a6cf6aa4dfd3a5852d857781984b
5881cf8759409b1606703cf400a3ba0fcda135d5405af03e58599ca912920194
9190d78e36a3e37c2272aa7c261861835c93e879f42d24b7a3a4cac79c41ecf2
bad8b4d8601224812e4f2f4b1d7b84c65b5ccf3de80823ae80698414c7051b0b
e753e435c8f585e9b6c918851ed56758c1117fa0c7dd38635a52e63869549a9f

From the PIN diode (hex format):

2026-12-03T20:08:19.391006+00:00
14bdd0f19a3ce68124ba85d66f1adf2425f98af8e2ee86503ca59ff0735ec583
f55bb8fc0b9add58d8376187c472ae349bae9619d2d23153e5f2a541e2519b72
819a0e8d45fd25b99355d924bf08d324d09103b2335fcc84f3b2976312c57698
b3a15039ed63e40aaeb44d5ec6930bf69f0fdb0878ec0a4a940b21518a0354c9
298c13478973ac0b68fc7f39ef14b6dd0edaad994a0ea85188b23cac758adfe9
2d1360ca76fd81bb486d831e9ecb3f40a250d89a98ea1389439089456f3d75a0
fd2191c6b10b770198ae1ef101b710c5f1c99977b07c7f13a196bc4a0af66b42
cd513fad67c151597d0ac9404ab04ab4efaf8cd0fc8d257c45bba15b457f9f42
14e2f65222f2fc71e314e5a4fe34f10c8aecaca85dcd2a23880d4ea644e3d376
596d27ddfa6ce279077ca76f7bcc345a872170a448f0623a9030f4349266196f
38a0e871cb24810c604399fe1abcf20a7419f6d8c429668561b6aa7bc7d6ca70
f5635fb44c3272c4da3028067321559329153b9e2f63188085a390a381a017ff
8d5a31719fe8c49301e1571ccb73de0a5c2efd0fc466515996ac0b797a9e9947
50655fbece6bf5341f4bef732c351d38e86ab024107363b9603550bc1c64984c
8694c2612c612d0788559a04533595832bbd25a8f58f7fcd05dd9884dffe5acc
04c2f7b853357b9fe8a22e0761a194716f712555a069aa45c53fcffc28d6d715
23d67c7d18741dd2070eb38dbc1136fa6fd08046bc06cdc6a7bdfc89ee541573
dea8398d483341fa0158053b5e42b3fd64f1e8c76684b4f11aaba38ee38e9d12
8d24d90294efd02578ae72be5ae1d34897b27d8b68aac1d3b202aaccb83f972e
2cac6806a9f8ecbc14182ef5fe47666307c4729a822f11ea00e4c35d4a74c9e9
1149cde68f7274d6e323630ff3ce5d9e7898c2094931912148d9d5df5df0759f
d0db7588558352eacb980fc82e0da742f88fafefd49abdc4d51853e9113acf82
2ae5ce53a25f4977ddae7c53ca6db59373dec5e1d246abfecadb13280d5ff86e
3ed7974013322b79a8bd9914f0ff6bdf747d36c3dd2a3c3ac2569a305b10237b
88c6c158e98d15842c7a39919e95cbdaaf2dd074ef5ceda8aa2bd1b748cc5c67
bdbbb7a2930c585928844b87fae7a3d38b0ec904f20d340154204f5a75a01fd4
76ece861653e7e91f802da1be3ca7381b6b8c2b6bf07e6c70c32c272b60e2936
5f92a9a800b854a35c3ab3dd8c105027ba12ee526814cb4920e8d6fa01dbd512
889608ab49961bfa4487c12faa067a1b5bfd4308397b912e45e53074947135ed
2ada00a65b872c0ab7cccaf086b1602d026a98fb73deef863df6635e43ee31da
69dc4b9e3a94618c6f63227ddc6f22c9fe6bda8f2b36fcc8f0ddc02ee4f7ec20
f300295c2b22c2d3638237663c14876d07e6e055c6d0645c0a33dc2bbf3d5c3f

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-03T20:13:09.791426+00:00
02938096394275551879421960436133575228286555973913
65762035513813945112415831511521921853072834341933
93122054819781808890665732825067966484016897635821
56252303434343517899172650242024969550423814166203
04693857798218407897576466302434367775775654426775
74890078676735916294704934605953248658298739451473
35681158164911014876415338399058850956934067735286
15779051011409039178431415630612984416152194985530
67516350233428722919213287197282161772681901095945
38319923950834910774057078169548177988605255630651
45165774931344628332076333095358337259283057269429
01442957433603821481687842416774207290612005534247
14788181515502370743357283425586954576355511798223
25582666650644521974994626874181155519517895563372
92922873105741010758026601739608980513868688315496
52359489973033792906718516518724219679342668383281
50243022292834303259082796295546325279265978422978
64483466612865078205038598700762389976107248074225
08023013908034327049846898961625385399467624947602
30666858705904853233015670154725210426566493166522
67920775278326842192631995341193234069907511844140
61861716232442552536684886193803427626432088794423
56978883801298450740906048007093602879080517011516
65756783366542935059697856379468991076086303294457
80792354963099342008736522131231699997638076000168
98262209774568781411043021562692377722879099620296
36567172310530783303744956947528905874422035049703
63803849647453638087487283660664653345331929527588
29358964552206126000638615615364906288895669184601
48454442546324341470243824973192472145368363649956

From the PIN diode (digits):

2026-12-03T20:08:19.391006+00:00
20895460293686331126363738348060655915949731918411
54885597359614745255745025498365658155142954144169
37854785369108364503785195327851991897185279618057
99107480779498471159150820107448113381380384414019
71371572110427572082147353741468813678607217384519
96182987720931305863646280545219376744376911611760
33459877111901527430018316975319762427196150887410
07668163730393818925106474767480754041372469876191
69275966208234132064521238726893423536137866681889
09390821072467112352903533126472985844485246022511
56601336291296675326881016259641023397827023991299
95807650149648400615338547412159584799242833634463
29602341904913599647018728151092461596028189507211
21225853718001959007523175154453295606763616159985
96538088280052763448949744974507368554048353493143
89376843270552329004948483532359624607976148131113
37856005706997634021352425241629071479418817541128
70880698678937842115685741725165018805599466790099
02328026716342425718413602483720741490907251782539
04709378027084635146447204066988202446710299079614
54304717009593741617734314163599159358205294097349
45337293175917368531825215461367664375548996248317
58304283629573197424830981471597707119401395106251
64195043216889532007162554954260589486544891163523
36989388412132442257455849754516926870438372920389
87836247128889403275356339140413520184327990176031
18970162264502271529828494829107991250941482144154
95466968008484639258794016803986188204207332011836
50087173502768359347700622279167085723454669481648
13534200669135441083347796450206521534619994674905

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