Skip to content

Instantly share code, notes, and snippets.

@lexfrei
Last active January 28, 2016 14:47
Show Gist options
  • Select an option

  • Save lexfrei/4425a446485ddc26a6b4 to your computer and use it in GitHub Desktop.

Select an option

Save lexfrei/4425a446485ddc26a6b4 to your computer and use it in GitHub Desktop.
JFc=(US RU GB JP DE "")
function JFGenReg {
if
[ $(expr $RANDOM % 2) = 1 ]
then
echo " ${JFc[$RANDOM % ${#JFc[@]}]}"
else
echo ""
fi
}
function JFGenPrice {
printf $(bc <<< "scale=2; ($(expr $RANDOM % 17)+1)/10")"\t"
}
function JFGenID {
printf "$(expr $RANDOM % 151)\t"
}
for i in {1..150};
do
JFGenID && JFGenPrice && JFGenReg
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment