Randomizing the prime numbers

In reply to pawan_101010:

Try below code.