Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Rich Newsgroups: sci.crypt Subject: Re: lun - Lucky Number Date: Tue, 11 Mar 2025 19:11:44 -0000 (UTC) Organization: A noiseless patient Spider Lines: 27 Message-ID: References: <87senjh1jr.fsf@bsb.me.uk> Injection-Date: Tue, 11 Mar 2025 20:11:45 +0100 (CET) Injection-Info: dont-email.me; posting-host="efafdee834088a733fbde9411d39a111"; logging-data="2247346"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/qsL5wlbgo0zejEwqiHM/M" User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64)) Cancel-Lock: sha1:GIyHVCiTnWgeLheaFopADx4afN8= Bytes: 1926 Ben Bacarisse wrote: > Rich writes: > >> Richard Heathfield wrote: >>> On 08/03/2025 21:32, Rich wrote: >>> >>> >>> >>>> 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. :)