Browse Source

Random

pull/3/head
Jure Šorn 6 years ago
parent
commit
b2d5bfe1d4
1 changed files with 5 additions and 5 deletions
  1. 10
      README.md

10
README.md

@ -361,11 +361,11 @@ float('inf'), float('nan')
### Random
```python
import random
<float> = random.random()
<int> = random.randint(from_inclusive, to_inclusive)
<el> = random.choice(<list>)
random.shuffle(<list>)
from random import random, randint, choice, shuffle
<float> = random()
<int> = randint(from_inclusive, to_inclusive)
<el> = choice(<list>)
shuffle(<list>)
```

Loading…
Cancel
Save