THREAD_RANDOM_GENERATION -> begin (thread safe random generation)