RandomPrime
RandomPrime[{imin,imax}] gives a pseudorandom prime number in the range imin to imax.
RandomPrime[imax] gives a pseudorandom prime number in the range 2 to imax.
RandomPrime[range,n] gives a list of n pseudorandom primes.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.