From b0f6b54600ef825f2b4513e319baf6b2a44267e1 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Mon, 4 Mar 2024 19:08:01 +0800 Subject: [PATCH] Update random.md --- docs/modules/random.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/modules/random.md b/docs/modules/random.md index 8ae098ec..3a97311a 100644 --- a/docs/modules/random.md +++ b/docs/modules/random.md @@ -25,4 +25,8 @@ Return a random element from a sequence. ### `random.shuffle(seq)` -Shuffle a sequence inplace. \ No newline at end of file +Shuffle a sequence inplace. + +### `random.choices(population, weights=None, k=1)` + +Return a k sized list of elements chosen from the population with replacement.