Generating truly random numbers with multiple simultaneous request

The Random Class, given a constant seed will always generate the samesequence of numbers.Creating a Random object using the default constructor uses the current timeas the seed, so if you have multiple simultaneous requests and need to getdifferent numbers this approach will not work.A slightly cumbersome “fix” to generate a seed is shown below. Thisessential [...]


Add comment