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

Re: pretty easy thing but too hard for me! (random array element)



02.08.07, 04:16, antho.charles@xxxxxxxxx:

> Hi,
> Sorry to bother you but I'm just really curious of the answer you give
> to fREW and, as you didn't copy it to zsh-users, I'd like to know if
> you could re-send your answer to zsh-users ?

  $arr[$RANDOM%$#arr+1]

  ps. i don't know, why my previous post not in zsh-users@...

--
wbw, artur



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