util/rand.sh

Random value generators.

rand_args()

Return random argument given to this function.

rand_bool()

Generate random bool.

rand_int()

Generate random int.

rand_intn()

Generate random int up to (but excluding) the given value.

rand_return()

Return (return) randomly 0 or 1. This can be convenient to use in if statements.

rand_string()

Generate random string up to the given length.