There maybe a way, however, if you need a larger number, you could maybe just use two, multiplied, added, whatever.
Maybe an algorithm whereby if the random is prime, generate another and multiply them....?
$RANDOM is a bash builtin. I dunno if you can alter it.
I tried typeset to change it - but no luck....