Advertisement
zeo9xcm

random1.sh

Jan 20th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.19 KB | None | 0 0
  1. #! /bin/bash
  2. i=0;
  3. while [ $i -lt 5  ]; do
  4.  
  5.   NUM=$RANDOM;
  6.   if [ $NUM -gt $1 ] && [ $NUM -lt $2  ]; then
  7.       echo $NUM -- $( date );
  8.   else continue;
  9.   fi;
  10.   i=$((i+1));
  11.  
  12. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement