I have a function object for parallelizing a for_each() algorithm using Thread Building Blocks,The function object uses a random number generator RND whose operator method () generates a UNIFORM RANDOM number between 0 and 1
Problem: I need a random number number generator to
1) initialize only once in the function object
2) should be threadsafe and
3) can be provided same seed so that same results could be obtained.