Skip to content

randomish.py

pythonian23 edited this page Aug 30, 2020 · 1 revision

Initialization

Security

  • uses random.SystemRandom to generate a relatively secure seed

Setup

  • sets up a basic set of modifiers

Functions

random_int(lim)

  • changes the seed and returns it while returning an integer under lim
  • Must change mod if lim is larger than mod

set_seed()

Clone this wiki locally