set random state (fix non-random bug)