class_docstr: Check implementation for usual random functions.
  
  Functions are:
  - random.random
  - random.gauss
  - random.uniform
  - random.expovariate
  - random.randrange
  - random.randint
  - random.sample
  - random.choice
  - random.seed
class_docstr_tok: ["Check","implementation","for","usual","random","functions",".","Functions","are",":","-","random.random","-","random.gauss","-","random.uniform","-","random.expovariate","-","random.randrange","-","random.randint","-","random.sample","-","random.choice","-","random.seed"]
docstr: Check sample picked values distribution. 
docstr_tok: ["Check","sample","picked","values","distribution","."]
code: def test_sample_(self):
      """Check sample picked values distribution."""
      self.run_test(
          """
          def sample(n, k):
              from random import sample
              s = sum(sum(sample(range(100), k)) for x in range(n))
              return abs(s / float(k * n) - 99 / 2.) < .05""",
          10**6,
          4,
          sample=[int, int],
      )
  
file_path: pythran/pythran/tests/test_random.py
imports: from pythran.tests import TestEnv
  from unittest import skipIf
  import sys
label_desc: Use image node_id 9 for calling the TestRandom obj's underlying member method code with example usage: obj.test_sample_() without return types