Skip to content

Commit

Permalink
add random sleeper
Browse files Browse the repository at this point in the history
  • Loading branch information
KarolKozlowski committed Feb 12, 2020
1 parent 7c2dacd commit f691325
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions randsleep
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

rand=0
dev=${1:-30}

echo "Using deviation: ${dev}"

while sleep $rand
do
rand=$((${dev}*${RANDOM}/32767))
echo $rand
done

0 comments on commit f691325

Please sign in to comment.