Skip to content

Commit 86a389d

Browse files
authored
Update task.md
1 parent 2a44419 commit 86a389d

File tree

1 file changed

+1
-1
lines changed
  • 1-js/06-advanced-functions/13-generators/01-pseudo-random-generator

1 file changed

+1
-1
lines changed

1-js/06-advanced-functions/13-generators/01-pseudo-random-generator/task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ One of them is testing. We may need random data: text, numbers etc, to test thin
77

88
In Javascript, we could use `Math.random()`. But if something goes wrong, we'd like to be able to repeat the test, using exactly the same data.
99

10-
For that, so called "seeded pseudo-random generators" are used. They take a "seed", the first value, and then generate next ones using a formula. So that the same seed yields the same sequence, and hence the whole flow is easily reproducable. We only need to remember the seed to repeat it.
10+
For that, so called "seeded pseudo-random generators" are used. They take a "seed", the first value, and then generate next ones using a formula. So that the same seed yields the same sequence, and hence the whole flow is easily reproducible. We only need to remember the seed to repeat it.
1111

1212
An example of such formula, that generates somewhat uniformly distributed values:
1313

0 commit comments

Comments
 (0)