Sujet : Re: lun - Lucky Number
De : rjh (at) *nospam* cpax.org.uk (Richard Heathfield)
Groupes : sci.cryptDate : 09. Mar 2025, 06:39:50
Autres entêtes
Organisation : Fix this later
Message-ID : <vqj9j6$jfoc$1@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : Mozilla Thunderbird
On 09/03/2025 04:02, Rich wrote:
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?
4's always good. Very random, 4.
-- Richard HeathfieldEmail: rjh at cpax dot org dot uk"Usenet is a strange place" - dmr 29 July 1999Sig line 4 vacant - apply within