Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: broken random variable



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



Messages sorted by: Reverse Date, Date, Thread, Author