make seed, randint and shuffle threadsafe