diff options
| author | Leyla Jähnig <[email protected]> | 2022-11-25 16:59:10 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-25 16:59:10 +0100 |
| commit | 7d4d99f00bf1e29c14346bd6a9fab33c8e7d5743 (patch) | |
| tree | 323754ca575c56ccf688539cfcca66d54c903602 /src/modules/random | |
| parent | 0af0fff4a410d7531368c709327ba0798a47091a (diff) | |
| download | faker-7d4d99f00bf1e29c14346bd6a9fab33c8e7d5743.tar.xz faker-7d4d99f00bf1e29c14346bd6a9fab33c8e7d5743.zip | |
feat(number): move methods to new module (#1122)
Co-authored-by: ST-DDT <[email protected]>
Co-authored-by: Eric Cheng <[email protected]>
Co-authored-by: Leyla Jähnig <[email protected]>
Co-authored-by: Shinigami92 <[email protected]>
Diffstat (limited to 'src/modules/random')
| -rw-r--r-- | src/modules/random/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/random/index.ts b/src/modules/random/index.ts index cb81935b..21e46509 100644 --- a/src/modules/random/index.ts +++ b/src/modules/random/index.ts @@ -151,7 +151,7 @@ export class RandomModule { const words: string[] = []; if (count == null) { - count = this.faker.datatype.number({ min: 1, max: 3 }); + count = this.faker.number.int({ min: 1, max: 3 }); } for (let i = 0; i < count; i++) { |
