News for hackers. Stuff that matters.
Re:An RNG that runs in your brain by cmiller1 on Wednesday January 24, 2024 @08:47AM (#39117280)
The math as expressed in English in the original usenet post is ambiguous which confused me for a moment until I figured out what I was doing wrong.

> Choose a 2-digit number, say 23, your “seed”.

> Form a new 2-digit number: the 10’s digit plus 6 times the units digit.

Here's where the ambiguity is, I interpreted this as (tens_digit+6)*units_digit so I did (2+6)*3=24

> The example sequence is 23 –> 20 –> 02 –> 12 –> 13 –> 19 –> 55 –> 35 –> …

24 != 20 so I had to walk back and figure out that they in fact meant tens_digit+(6*units_digit)

There are no comments on this comment yet.