Python random Module
This page shows the popular functions and classes defined in the
random module.
The items are ordered by their popularity in 40,000 open source Python projects.
If you can not find a good example below, you can try
the search function
to search modules.
-
1. randint()Used in 5201 projects
-
2. choice()Used in 4106 projects
-
3. random()Used in 2742 projects
-
4. shuffle()Used in 2634 projects
-
5. seed()Used in 2443 projects
-
6. sample()Used in 1808 projects
-
7. randrange()Used in 1372 projects
-
8. uniform()Used in 1314 projects
-
9. Random()Used in 487 projects
-
10. SystemRandom()Used in 364 projects
-
11. getrandbits()Used in 313 projects
-
12. choices()Used in 238 projects
-
13. gauss()Used in 163 projects
-
14. getstate()Used in 76 projects
-
15. setstate()Used in 56 projects
-
16. expovariate()Used in 51 projects
-
17. normalvariate()Used in 46 projects
-
18. gammavariate()Used in 20 projects
-
19. triangular()Used in 18 projects
-
20. lognormvariate()Used in 15 projects
-
21. WichmannHill()Used in 14 projects
-
22. choose()Used in 12 projects
-
23. html()Used in 10 projects
-
24. betavariate()Used in 10 projects
-
25. __all__()Used in 10 projects
-
26. SG_MAGICCONSTUsed in 10 projects
-
27. LOG4Used in 10 projects
-
28. NV_MAGICCONSTUsed in 10 projects
-
29. TWOPIUsed in 10 projects
-
30. _urandom()Used in 9 projects
-
Used in 9 projects
-
32. next()Used in 6 projects
-
33. init_from_bin()Used in 6 projects
-
Used in 6 projects
-
35. py()Used in 6 projects
-
36. paretovariate()Used in 6 projects