class_docstr: Random number generator base class used by bound module functions.
  
  Used to instantiate instances of Random to get generators that don't
  share state.
  
  Class Random can also be subclassed if you want to use a different basic
  generator of your own devising: in that case, override the following
  methods:  random(), seed(), getstate(), and setstate().
  Optionally, implement a getrandbits() method so that randrange()
  can cover arbitrarily large ranges.
class_docstr_tok: ["Random","number","generator","base","class","used","by","bound","module","functions",".","Used","to","instantiate","instances","of","Random","to","get","generators","that","don't","share","state",".","Class","Random","can","also","be","subclassed","if","you","want","to","use","a","different","basic","generator","of","your","own","devising",":","in","that","case",",","override","the","following","methods",":","random","(",")",",","seed","(",")",",","getstate","(",")",",","and","setstate","(",")",".","Optionally",",","implement","a","getrandbits","(",")","method","so","that","randrange","(",")","can","cover","arbitrarily","large","ranges","."]
docstr: Return a random int in the range [0,n).  Defined for n > 0.
  
  The implementation does not use getrandbits, but only random.
docstr_tok: ["Return","a","random","int","in","the","range","[","0",",","n",")",".","Defined","for","n",">","0",".","The","implementation","does","not","use","getrandbits",",","but","only","random","."]
code: def _randbelow_without_getrandbits(self, n, maxsize=1 << BPF):
      """Return a random int in the range [0,n).  Defined for n > 0.
  
      The implementation does not use getrandbits, but only random.
      """
  
      random = self.random
      if n >= maxsize:
          from warnings import warn
  
          warn(
              "Underlying random() generator does not supply \n"
              "enough bits to choose from a population range this large.\n"
              "To remove the range limitation, add a getrandbits() method."
          )
          return _floor(random() * n)
      rem = maxsize % n
      limit = (maxsize - rem) / maxsize  # int(limit * maxsize) % n == 0
      r = random()
      while r >= limit:
          r = random()
      return _floor(r * maxsize) % n
  
imports: from math import log, exp, pi, e, ceil
  from math import sqrt, acos, cos, sin
  from math import tau, floor, isfinite
  from math import lgamma, fabs, log2
  from os import urandom
  from _collections_abc import Sequence
  from operator import index
  from itertools import accumulate, repeat
  from bisect import bisect
  import os
  import _random
label_desc: Use image node_id 10 for calling the Random obj's underlying member method code with example usage: obj._randbelow_without_getrandbits(n, maxsize) and returns: unknown, _floor