Sujet : Re: lun - Lucky Number
De : rich (at) *nospam* example.invalid (Rich)
Groupes : sci.cryptDate : 09. Mar 2025, 05:02:27
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vqj3si$ei2k$1@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Richard Heathfield <
rjh@cpax.org.uk> wrote:
On 08/03/2025 21:32, Rich wrote:
<snip>
Looking at the source, how does someone with pencil and paper perform
this magic?:
n, _ := rand.Int(rand.Reader, max)
Roll some dice.
d4 give you two bits at a time, d8 give you three, or d16 give
you four. Quick and easy. Or if you prefer decimal, d10s are also
readily available.
True, that will work. Die for generating, pencil and paper for
'recording' the result.
However, if one had pencil, paper, and no die anywhere?
As well, with just pencil and paper, obtaining a Unix epoch is quite
an interesting 'by hand' calculation in order to perform this:
epochTime := time.Now().Unix()
You can skip that part by pretending it's 1970.
Very true. Although then the offset random number is also identical to
the non-offset number. Not that the offset is actually doing anything.