thread safe random methods