Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Richard Heathfield Newsgroups: sci.crypt Subject: Re: lun - Lucky Number Date: Sun, 9 Mar 2025 05:39:50 +0000 Organization: Fix this later Lines: 30 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 09 Mar 2025 06:39:57 +0100 (CET) Injection-Info: dont-email.me; posting-host="66293360dcff8ed84aa89f1d5417d935"; logging-data="638732"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19dJKloxpqmSG7xGL0izDW2Oajz+MdLh7mWqs88E/82cA==" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:ujjtUfoBBclR453rP/7bYrQjwNU= In-Reply-To: Content-Language: en-GB Bytes: 2029 On 09/03/2025 04:02, Rich wrote: > 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? 4's always good. Very random, 4. -- Richard Heathfield Email: rjh at cpax dot org dot uk "Usenet is a strange place" - dmr 29 July 1999 Sig line 4 vacant - apply within