X-Git-Url: http://plrg.eecs.uci.edu/git/?p=pingpong.git;a=blobdiff_plain;f=automation%2Fbrowser.sh;h=7d089a1fcca7f8da60ef2b668fd77689ba225e3c;hp=4d334ef7f1949348002aa1fc22239697e06c2ba8;hb=75f9c0fb7090c92975d0a49c61f801608a43e961;hpb=c059f6f40bd60500aa73f7f0bdae6948cb32e83a diff --git a/automation/browser.sh b/automation/browser.sh index 4d334ef..7d089a1 100755 --- a/automation/browser.sh +++ b/automation/browser.sh @@ -27,12 +27,15 @@ while true do # Choose a website randomly #RAND=$[( $RANDOM % $RAN_END ) + $RAN_STA] - RAND=$[`jot -r 1 $BRO_RAN_STA $BRO_RAN_END`] + #RAND=$[`jot -r 1 $BRO_RAN_STA $BRO_RAN_END`] + RAND=$[`shuf -i $BRO_RAN_STA-$BRO_RAN_END -n 1`] echo "${WEBSITE[$RAND]}" curl ${WEBSITE[$RAND]} # Sleep with random delay time - RAND=$[`jot -r 1 $SLP_RAN_STA $SLP_RAN_END`] + #RAND=$[`jot -r 1 $SLP_RAN_STA $SLP_RAN_END`] + #RAND=$[( $RANDOM % $RAN_END ) + $RAN_STA] + RAND=$[`shuf -i $SLP_RAN_STA-$SLP_RAN_END -n 1`] echo "Delay: $RAND seconds" sleep $[$RAND]s