MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / randint

Method randint

tools/python-3.11.9-amd64/Lib/random.py:358–362  ·  view source on GitHub ↗

Return random integer in range [a, b], including both end points.

(self, a, b)

Source from the content-addressed store, hash-verified

356 return istart + istep * self._randbelow(n)
357
358 def randint(self, a, b):
359 """Return random integer in range [a, b], including both end points.
360 """
361
362 return self.randrange(a, b+1)
363
364
365 ## -------------------- sequence methods -------------------

Callers 7

_connectMethod · 0.80
randomrowFunction · 0.80
randommoveFunction · 0.80
pseudo_tempnameMethod · 0.80
progress.pyFile · 0.80
live.pyFile · 0.80
randomizeFunction · 0.80

Calls 1

randrangeMethod · 0.95

Tested by

no test coverage detected