Good day one and all,
I have a randomness headache...
I have a simulation that is trying to create upto 10,000 random decks of cards, one after the other, as quickly as possible.
The problem I seem to have is that each random Deck repeats 4 or 5 times before a new one is created. I think this may be because the random function works off the current tick or seed (I've tried using DateTime.Now.Millisecond as seed). It seems that it's managing 4 or 5 iterations before the tick or seed value actually changes. Is there anyway I can use a seed that will be quick enough to take effect before the next iteration?
I'm basically trying to build a poker odds calculator so it needs to be quick for the decision and extensive for the accuracy.
Any advice would be much appreciated.
Thanks!
I have a randomness headache...
I have a simulation that is trying to create upto 10,000 random decks of cards, one after the other, as quickly as possible.
The problem I seem to have is that each random Deck repeats 4 or 5 times before a new one is created. I think this may be because the random function works off the current tick or seed (I've tried using DateTime.Now.Millisecond as seed). It seems that it's managing 4 or 5 iterations before the tick or seed value actually changes. Is there anyway I can use a seed that will be quick enough to take effect before the next iteration?
I'm basically trying to build a poker odds calculator so it needs to be quick for the decision and extensive for the accuracy.
Any advice would be much appreciated.
Thanks!