MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / seed_random

Method seed_random

tests/test_pager_code.py:335–338  ·  view source on GitHub ↗

Seed the random number generator.

(self, seed)

Source from the content-addressed store, hash-verified

333 return random.randint(0, max_val - 1)
334
335 def seed_random(self, seed):
336 """Seed the random number generator."""
337 import random
338 random.seed(seed)
339
340 # ========== INPUT ==========
341 def wait_button(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected