From ea29259874b9b32a14bc920478442eabea1e67ba Mon Sep 17 00:00:00 2001 From: Max R Date: Fri, 11 Aug 2023 10:32:18 -0400 Subject: [PATCH 1/2] Fix typo in `random.choice` docstring --- src/random.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/random.ts b/src/random.ts index b2dff4a..25ed812 100644 --- a/src/random.ts +++ b/src/random.ts @@ -219,7 +219,7 @@ export class Random { } /** - * Returns an item chosen uniformly at trandom from the given array. + * Returns an item chosen uniformly at random from the given array. * * Convence wrapper around `random.uniformInt()` * From 725409974cb4c56b1ed8b3508a1692efc162a27c Mon Sep 17 00:00:00 2001 From: Max R Date: Fri, 11 Aug 2023 10:32:46 -0400 Subject: [PATCH 2/2] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 4ac05f0..c9fe4ff 100644 --- a/readme.md +++ b/readme.md @@ -310,7 +310,7 @@ Type: `function (): boolean` #### [choice](https://github.com/transitive-bullshit/random/blob/fcead1d157da7b3551e25b1ba8d4b0787d608f07/src/random.ts#L229) -Returns an item chosen uniformly at trandom from the given array. +Returns an item chosen uniformly at random from the given array. Convence wrapper around `random.uniformInt()`