Yeah, RANDOM is bash-specific, so with a POSIX shell you can use hexdump of /dev/urandom bytes. Change the math to suit your use case (this version gives a 0-59 value from a random byte 0-255, so distribution is not exactly uniform, but close enough):
Just for the record, the default shell on the router is Busybox ash, so pretty much POSIX plus a few extensions (for example, you'll see widespread use of non-POSIX local all over).