5 Miscellaneous Services

The modules described in this chapter provide miscellaneous services that are available in all Python versions. Here's an overview:

math
-- Mathematical functions (sin() etc.).

cmath
-- Mathematical functions for complex numbers.

whrandom
-- Floating point pseudo-random number generator.

random
-- Generate pseudo-random numbers with various common distributions.

rand
-- Integer pseudo-random number generator (obsolete).

array
-- Efficient arrays of uniformly typed numeric values.





guido@python.org