Random.set_state

View: New views
1 Messages — Rating Filter:   Alert me  

Random.set_state

by Fresh1234 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am totally new to OCAML.
How can I change the state of RNG using Random.set_state??
I want to use it to create a stateless RNG so I plan to do something like

Random.set_state
Random.int x
Random.get_state

within a function.