|
| From: | Jim Meyering |
| Subject: | Re: feature request: sleep --random |
| Date: | Fri, 18 Sep 2009 20:28:25 +0200 |
PƔdraig Brady wrote:
> PƔdraig Brady wrote:
>> sleep $(seq .1 .1 4 | head -n $(($RANDOM%40 +1)) | tail -n1)
>
> Or more concisely using just coreutils logic:
>
> sleep $(seq .1 .1 4 | shuf | head -n1)
Or save a pipe+process:
sleep $(seq .1 .1 4 | shuf --head=1)
| [Prev in Thread] | Current Thread | [Next in Thread] |