Random.random () generates a floating-point number from 0 to 1, excluding 0 excluding 1
Random.uniform (100,1000) specifies that a floating-point number be returned with a maximum minimum value
Random.randint (1,3) random integer application within the specified range: SMS Verification Code
Random.choice ([1,34,5,6,6]) getting random elements from a sequence
Random.randrange (10,100,2) gets a random integer from the list by a collection that increments by the specified technique
>>> Import Random
>>> random.randrange (0, 101, 2)
42
Random.shuffle (p) is used to disrupt elements in the list
Random.sample (list,4) randomly acquires a length fragment from the specified, and the sample function does not modify the list's sequence
>>> Import Random
Random.sample (' Abcdefghij ', 3)
The three numbers taken out of [' a ', ' d ', ' B '] are also unordered
Rrandom module randomly generates numbers