In Bash, the $RANDOM variable is the go-to for generating random numbers.
$RANDOM
Here’s the lowdown on rounding in Bash.
Bash doesn’t support complex numbers natively.