From: "Daniel Shahaf" <d.s@daniel.shahaf.name>
To: "Roman Perepelitsa" <roman.perepelitsa@gmail.com>,
". ." <apatiskogen@yandex.com>
Cc: "Zsh hackers list" <zsh-workers@zsh.org>
Subject: Re: broken random variable
Date: Sat, 19 Oct 2019 06:09:06 +0000 [thread overview]
Message-ID: <323103ad-5893-48d6-82e2-80adda9c128c@www.fastmail.com> (raw)
In-Reply-To: <CAN=4vMpkANr-K6zcxtVTa95-ip08+c=pDwEcKP7Tt7JufNr1NQ@mail.gmail.com>
Roman Perepelitsa wrote on Sat, 19 Oct 2019 05:44 +00:00:
> Simpler test case:
>
> repeat 2 ( echo $RANDOM )
>
> Prints the same number twice. Tested on FreeBSD and Linux.
Yes, it's documented to behave this way.
man zshall | less -p RANDOM
next prev parent reply other threads:[~2019-10-19 6:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-19 5:38
2019-10-19 5:44 ` Roman Perepelitsa
2019-10-19 6:09 ` Daniel Shahaf [this message]
2019-10-19 9:48 ` Sebastian Gniazdowski
2019-10-19 14:31 ` Mikael Magnusson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=323103ad-5893-48d6-82e2-80adda9c128c@www.fastmail.com \
--to=d.s@daniel.shahaf.name \
--cc=apatiskogen@yandex.com \
--cc=roman.perepelitsa@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).