Advertisement
cd62131

echo $RANDOM

Aug 4th, 2018
817
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  1. #!/bin/bash
  2. f() {
  3.   (( $# >= 5 )) && echo $@
  4.   true # for normal exit status
  5. }
  6.  
  7. for (( i = ${RANDOM} % 5 + 2; i >= 0; i-- )); do # call <7 >2 times
  8.   args=''
  9.   for (( j = ${RANDOM} % 10; j >= 0; j-- )); do # <10 args
  10.     args="${args} ${RANDOM}"
  11.   done
  12.   f ${args}
  13. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement