scglue.utils.get_rs

scglue.utils.get_rs(x=None)[source]

Get random state object

Parameters

x (typing.Union[RandomState, int, None]) – Object that can be converted to a random state object

Return type

RandomState

Returns

rs – Random state object