From 6a1ab6abea2c73323c5ff8bf76b15a9acdb5a56b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 16 Dec 2022 21:54:39 +0100 Subject: [PATCH] Random --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 77d7b80..d93636f 100644 --- a/README.md +++ b/README.md @@ -518,7 +518,7 @@ from statistics import mean, median, variance # Also: stdev, quantiles, grou ### Random ```python -from random import random, randint, choice # Also shuffle, gauss, triangular, seed. +from random import random, randint, choice # Also: shuffle, gauss, triangular, seed. = random() # A float inside [0, 1). = randint(from_inc, to_inc) # An int inside [from_inc, to_inc]. = choice() # Keeps the sequence intact. diff --git a/index.html b/index.html index 0a3bb03..4a28299 100644 --- a/index.html +++ b/index.html @@ -470,7 +470,7 @@ Point(x=1, y=2

Statistics

from statistics import mean, median, variance     # Also: stdev, quantiles, groupby.
 
-

Random

from random import random, randint, choice        # Also shuffle, gauss, triangular, seed.
+

Random

from random import random, randint, choice        # Also: shuffle, gauss, triangular, seed.
 <float> = random()                                # A float inside [0, 1).
 <int>   = randint(from_inc, to_inc)               # An int inside [from_inc, to_inc].
 <el>    = choice(<sequence>)                      # Keeps the sequence intact.