RandomPrime

RandomPrime[{imin, $imax}]
gives a random prime between imin and imax.
'RanomPrime[imax]
gives a random prime between 2 and imax.
RandomPrime[rangen]
gives a list of n random primes in range.