MCPcopy Index your code
hub / github.com/python/cpython / randomlist

Method randomlist

Lib/test/test_random.py:33–35  ·  view source on GitHub ↗

Helper function to make a list of random numbers

(self, n)

Source from the content-addressed store, hash-verified

31 # to be tested.
32
33 def randomlist(self, n):
34 """Helper function to make a list of random numbers"""
35 return [self.gen.random() for i in range(n)]
36
37 def test_autoseed(self):
38 self.gen.seed()

Calls 1

randomMethod · 0.45

Tested by

no test coverage detected