D
D. Patrick
I have a multi-threaded app that needs to generate random 8 digit numbers.
I'm using VB.NET 2.0. The problem is that >1 request for a random number
can occur in the same millisecond. I can't seed with a time value when the
time for 2 (or more) threads is identical. Even ticks is identical. So
how can I generate a random number that will not likely be the same as the
number returned by another thread running at that same millisecond? It
seems computers are getting too fast these days to just seed with the time.
I'm using VB.NET 2.0. The problem is that >1 request for a random number
can occur in the same millisecond. I can't seed with a time value when the
time for 2 (or more) threads is identical. Even ticks is identical. So
how can I generate a random number that will not likely be the same as the
number returned by another thread running at that same millisecond? It
seems computers are getting too fast these days to just seed with the time.