From 86a389d5f2140fee537cd1bf971428259326be35 Mon Sep 17 00:00:00 2001 From: Mau Di Bert Date: Thu, 7 Mar 2019 05:49:49 -0300 Subject: [PATCH] Update task.md --- .../13-generators/01-pseudo-random-generator/task.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/06-advanced-functions/13-generators/01-pseudo-random-generator/task.md b/1-js/06-advanced-functions/13-generators/01-pseudo-random-generator/task.md index 48be5702..eb1a1da0 100644 --- a/1-js/06-advanced-functions/13-generators/01-pseudo-random-generator/task.md +++ b/1-js/06-advanced-functions/13-generators/01-pseudo-random-generator/task.md @@ -7,7 +7,7 @@ One of them is testing. We may need random data: text, numbers etc, to test thin 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. -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. +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. An example of such formula, that generates somewhat uniformly distributed values: