How do I generate random numbers x times and write them as a string? I know how to generate random numbers:
Random rnd= new Random();
int num= rnd.Next(1, 51);
but how do I generate them x times and write them like "5, 15, 45"?
I hope my question is understandable.