From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id A0B03225B1 for ; Sat, 4 May 2024 03:33:57 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1714786437; b=dYDKk3hsEyEUFaKTOiaRob/wwGjv0RYDmSHdd0XW8vBR7SqYilFQ5psh6RuxTHXZcgtdIWjfFN +WXAiOfH6UqR2Rz/Tp9LzQ29HVRDEnt14ucHUSDto4TwfjBLoUUxKMLmdaVL7yjxzZ3VPq20vm GnAUiPx7Ozjo1HYWBxFvc1JYybLMhtR8r2Vg9ukhSWP1TVdAxmENTG1g1+nTvb1d9LUzJprqBH KLOv8eHSFiqqjcExipETFMPCl1C+nlFxL6V1PSzF6b3uy7ZLxCsKVfbMdbpmRy1mn0X8YhkHmu yrumXXrMtHdPfG+KZHJzJnmCjQuYCx6lEb9vvTdZLh+kZQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta01.eastlink.ca) smtp.remote-ip=24.224.136.30; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1714786437; bh=TzyfBtyjuKKRYt+705TXfu7CR1J6Q4w6WWRRfy3wtB0=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Content-Type:DKIM-Signature; b=pmfGx2dkSBUkyh2hgDs66i2IRsm1ypV78uadNlcuJpMUoE+P8AQwscmYMhYbeqdONShrI1NIWq MYKyGXXOpcGjbKAAywXwrG+gin9bXwcfK4yxDLerWT8p3d0vlveogb2ezzBEPxdBDgblPXJbf+ 58NoH01V/UV6OTTrbJowMGqG5GlV0UMyQJORS1vY3lThbT0k6ndxNotwQKhbELY+k3cdooCAs/ MNmYLYWPobOiJeoXDiIRAmIX554+p+e4RMNG6aslInyq3gBPMU37F50hulD64u0rlZaLPlU8u9 OeIfyKIw2KSGtvL758VcMBpSHHvUPCtfaalpT27k1DU0jQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-reply-to:From:References:To: Subject:MIME-version:Date:Message-id:Content-type:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=2qQZYz7KT3Vuc3+nmBQTyZ8UVdkwgnHmC+MFCOi6Q4Q=; b=gFkE2/kaV0+Dy0MRE62OeejMxZ IrGd5uRZGQzSxibBL1UjLfjHJDiVEyLN2Ak3tnlSNZC7pLjZJsRX4eOfmg7eUieslC2Qni61GnEX0 AwQeub5iOvVzzz/lTvniMfzYnqOj0rqJBfxYvr9mmY9iQTvYJPFgUeokXM3scqShzmvkkdDtX8NYQ 9BW03IRhqNQsWzJ9ke6XkoGBls65h4RQ5r1uewJLfzdA/9ww2ikscc55zLSrAybbFYyaMXzTsvam+ wr3tc1EJoc3dSwpGeX0jL2mR4k6u4WJFtN+li+F6iKfqN6Y3mxWa3VRxcZe5SVgPd7pvSRVSBG6tB xm+IRjBw==; Received: by zero.zsh.org with local id 1s34Hk-0001tN-US; Sat, 04 May 2024 01:33:57 +0000 Authentication-Results: zsh.org; iprev=pass (mta01.eastlink.ca) smtp.remote-ip=24.224.136.30; dmarc=none header.from=eastlink.ca; arc=none Received: from mta01.eastlink.ca ([24.224.136.30]:54629) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1s34Fx-00017x-Fz; Sat, 04 May 2024 01:32:06 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta01.eastlink.ca ([24.224.136.30]) with ESMTPS id <0SCX08U2STL9XDF1@mta01.eastlink.ca> for zsh-users@zsh.org; Fri, 03 May 2024 22:32:04 -0300 (ADT) Received: from [192.168.0.11] (host-24-207-19-13.public.eastlink.ca [24.207.19.13]) by csp02.eastlink.ca ([71.7.199.167]) with ESMTPSA id 34FvsRxSZxAjx34FwszWsK (version=TLSv1_2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256); Fri, 03 May 2024 22:32:04 -0300 X-Authority-Analysis: v=2.4 cv=EfprQ+mC c=1 sm=1 tr=0 ts=66359014 a=e7T7DzMKK1R988ZCg0wLyw==:117 a=e7T7DzMKK1R988ZCg0wLyw==:17 a=r77TgQKjGQsHNAKrUKIA:9 a=2rGH_I8vPtI7xG6zkEAA:9 a=QEXdDO2ut3YA:10 a=pGLkceISAAAA:8 a=fk9pYppI1Dzj6GB9:21 a=_W_S_7VecoQA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddvuddggeejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurheptgfkffggfgfuvfhfhfgjsegrtderredtvdejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpefhteethfevgeeuvdelgefgvdevudefueduffdvgfelvddvgfdtieegueeuleeifeenucfkphepvdegrddvtdejrdduledrudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrdduledrudefpdhhvghloheplgduledvrdduieekrddtrdduudgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepreerpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Content-type: multipart/alternative; boundary="------------fA7EzneYOt0zFa6uUZ0UaP70" Message-id: Date: Fri, 3 May 2024 18:32:03 -0700 MIME-version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: rigorously predictable random numbers To: zsh-users@zsh.org References: <2cfbd7e7-0930-44ba-a0bf-99d04762fb92@eastlink.ca> <3a1ecefa-b0f9-4e63-bbf2-bf4dc2822090@app.fastmail.com> <91cc2797-db97-41d4-a06b-207532ec13f4@eastlink.ca> <28ac4582-81f0-426e-9809-79fc7dbef71f@eastlink.ca> Content-language: en-US From: Ray Andrews In-reply-to: X-Seq: 29885 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: This is a multi-part message in MIME format. --------------fA7EzneYOt0zFa6uUZ0UaP70 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024-05-03 17:28, Bart Schaefer wrote: > No, but it might be enough to qualify for the "F" in "AQ". > +3.31. Why does mytt($RANDOM) return the same number more than once? What I like is that even acknowledging that the question is out there goes half way to answering it. The question first awakens you to the fact that zsh is aware that what 'you' think 'RANDOM' means might not be what the shell delivers. That's half the battle right there. De-confused, one then seeks a method of producing 'real' random numbers. --------------fA7EzneYOt0zFa6uUZ0UaP70 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

On 2024-05-03 17:28, Bart Schaefer wrote:
No, but it might be enough to qualify for the "F" in "AQ".

      
+3.31. Why does mytt($RANDOM) return the same number more than once?
 
What I like is that even acknowledging that the question is out there goes half way to answering it.  The question first awakens you to the fact that zsh is aware that what 'you' think 'RANDOM' means might not be what the shell delivers.  That's half the battle right there.  De-confused, one then seeks a method of producing 'real' random numbers.  
  
--------------fA7EzneYOt0zFa6uUZ0UaP70--