Python | sympy.randprime() method
With the help of sympy.randprime() method, we can find a random prime number in the range [a, b), where a and b are parameters to the method. Syntax: randprime(a, b) Parameter: a - It denotes the start of the range. It is inclusive. b - It denotes the end of the range. It is not inclusive. Returns: