networkx.utils.misc.create_random_state¶
-
create_random_state(random_state=None)[source]¶ Returns a numpy.random.RandomState instance depending on input.
Parameters: random_state (int or RandomState instance or None optional (default=None)) – If int, random_stateis the seed used by the random number generator, if numpy.random.RandomState instance,random_stateis the random number generator, if None, the random number generator is the RandomState instance used by numpy.random.