Skip to content

Commit 31fa913

Browse files
author
avallete
committed
fix: docs example
1 parent 1f3658a commit 31fa913

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ It is particularly useful in scenarios where input consistency needs to be maint
445445
```js
446446
// Define a method to generate a value
447447
const method = (seed) => {
448-
return copycat.int(seed, { max: 1000 });
448+
return copycat.int(seed, { max: 3 });
449449
};
450450

451451
// Create stores to track unique values and inputs
@@ -454,11 +454,11 @@ const inputStore = new Set();
454454

455455
// Generate a unique number or retrieve the existing one for duplicate input
456456
copycat.uniqueByInput('exampleSeed', method, inputStore, resultStore);
457-
// => 388
457+
// => 3
458458
copycat.uniqueByInput('exampleSeed1', method, inputStore, resultStore);
459-
// => 655
459+
// => 1
460460
copycat.uniqueByInput('exampleSeed', method, inputStore, resultStore);
461-
// => 388
461+
// => 3
462462
```
463463

464464
### `copycat.password(input)`

0 commit comments

Comments
 (0)