Skip to content

Instantly share code, notes, and snippets.

@Rembane
Created June 7, 2016 15:36
Show Gist options
  • Save Rembane/3efdc5a8f6bb8157e81f4c455223fd53 to your computer and use it in GitHub Desktop.
Save Rembane/3efdc5a8f6bb8157e81f4c455223fd53 to your computer and use it in GitHub Desktop.
runRandom :: State StdGen a -> IO a
runRandom x = do
g <- newStdGen
return $ evalState x g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment