Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Fixed random numbers

  • random
  • seed
import random

random.seed(37)

print(random.random()) # 0.6820045605879779
print(random.random()) # 0.09160260807956389
print(random.random()) # 0.6178163488614024