当前位置: 首页 > 娱乐 > 正文

random_shuffle classRandom(_ra

作者:admin 发布时间:2023-07-03 20:42:58 分类:娱乐 浏览:5489


  class Random(_random.Random):

  ## -------------------- integer methods -------------------

  def randrange(self, start, stop=None, step=1, _int=int):

  def randint(self, a, b):

  def _randbelow(self, n, int=int, maxsize=1 << BPF, type=type,

  Method=_MethodType, BuiltinMethod=_BuiltinMethodType):

  ## -------------------- sequence methods -------------------

  def choice(self, seq):

  def shuffle(self, x, random=None):

  def sample(self, population, k):

  def choices(self, population, weights=None, *, cum_weights=None, k=1):

  ## -------------------- uniform distribution -------------------

  def uniform(self, a, b):

  ## -------------------- triangular --------------------

  def triangular(self, low=0.0, high=1.0, mode=None):

  ## -------------------- normal distribution --------------------

  def normalvariate(self, mu, sigma):

  ## -------------------- lognormal distribution --------------------

  def lognormvariate(self, mu, sigma):

  ## -------------------- exponential distribution --------------------

  def expovariate(self, lambd):

  ## -------------------- von Mises distribution --------------------

  def vonmisesvariate(self, mu, kappa):

  ## -------------------- gamma distribution --------------------

  def gammavariate(self, alpha, beta):

  ## -------------------- Gauss (faster alternative) --------------------

  def gauss(self, mu, sigma):

  def betavariate(self, alpha, beta):

  ## -------------------- Pareto --------------------

  def paretovariate(self, alpha):

  ## -------------------- Weibull --------------------

  def weibullvariate(self, alpha, beta):


标签:and is in be Me 


相关推荐

最新推荐
最新TAG

关灯