After studiously procrastinating I got to wondering about Random numbers and how no one seems satisfied with the randomness of the Random number generator and came up with the below code. Would this be more random than Random?
Note: I'm just playing here, that is to say: not a serious question and definitely not worth spending more than an hour answering.
Random rand = new Random();
List<int> fifteenRandomNumbers = new List<int>();
for (int i = 0; i < 15; i++)
{
int randomNumber = rand.Next(0, 10);
fifteenRandomNumbers.Add(randomNumber);
}
string allNumbers = "";
foreach (int number in fifteenRandomNumbers)
{
allNumbers += number;
}
Convert.ToUInt64(allNumbers);
UPDATE: Thanks for the quick answers , and just to reiterate, this isn't something I'm aiming at actually implementing , I was just curious. And I'm not really worried about if it would work, it's more about the broader concept of random numbers. I'm also not considering cryptography, as interesting as it may be. I'm also not worried about casting etc.
Just to explain my thinking here (which has been pointed out to be entirely wrong but that's kind of why I asked) I figured that if I joined a series of results from 15 Random.Next(0,n) operations the odds of getting a truly random number would be greater than if I'd done only one such operation. This has been said to be a false assumption and I appreciate the time spent answering my question.