random number generation in ksh

i tried to use $random function in unix
i simply typed print $random at shell and it returnted no value
is there any function in korn shell that i can use to generate random number

help is appreciated

You do not want $random, you want $RANDOM.

Note that RANDOM is only a pseudo-random number generator which returns an integer which is "uniformly distributed" between 0 and 32767. To provide less predictability, you should initialize RANDOM by first assigning a numeric value to RANDOM.