seperate rand instances for each thread