Prime number calculator!

How many Numbers should be generated?

What should be the maximum value of the random number?