generateRandomPrime

Generates a random prime number within range, using isPrime() function to check for primality.