Sujet : Re: lun - Lucky Number
De : richard.nospam (at) *nospam* gmail.invalid (Richard Harnden)
Groupes : sci.cryptDate : 11. Mar 2025, 21:44:28
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vqq7bc$25k7o$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11
User-Agent : Mozilla Thunderbird
On 11/03/2025 19:59, Rich wrote:
Richard Heathfield <rjh@cpax.org.uk> wrote:
On 11/03/2025 19:11, Rich wrote:
Ben Bacarisse <ben@bsb.me.uk> wrote:
Rich <rich@example.invalid> writes:
>
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?
>
How may sides does the pencil have? ;-)
>
A round pencil, with no sides. :)
>
You've got paper, though.
>
https://www.professororigami.com/how-to-make-an-origami-cube/
>
:-)
I admit defeat. :) With this one can create a 'die' from paper. It
may be biased (in that one side may very well weigh slightly more than
another) but barring massive bias it should be random enough.
Way too complicated: Chew the paper until its one homongonised mess, spilt it out, mould into a cube.
Extra credit if you can manage a d20.
I wonder why nobody wants /my/ random numbers!