def get_srng(): '''Shared Randomstream. ''' srng = SRandomStreams(random.randint(0, 1000000)) return srng