Run ❯
Get your
own Python
server
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
import random #print a random number: print(random.random()) #capture the state: state = random.getstate() #print another random number: print(random.random()) #restore the state: random.setstate(state) #and the next random number should be the same as when you captured the state: print(random.random())
0.6731178120498394
0.5642272440431916
0.5642272440431916