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

Method random

pager/pagerctl.py:493–495  ·  view source on GitHub ↗

Get random number from 0 to max-1.

(self, max_val)

Source from the content-addressed store, hash-verified

491
492 # Random
493 def random(self, max_val):
494 """Get random number from 0 to max-1."""
495 return _lib.pager_random(max_val)
496
497 def seed_random(self, seed):
498 """Seed the random number generator."""

Callers 4

_buildRubbleWallMethod · 0.45
_buildDotMatrixMistMethod · 0.45
_updateParticleTrailMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected