refactor promise, geneerators, global object
This commit is contained in:
parent
be9c5a7b5f
commit
2ee2751216
69 changed files with 900 additions and 643 deletions
|
@ -0,0 +1,9 @@
|
|||
function* pseudoRandom(seed) {
|
||||
let value = seed;
|
||||
|
||||
while(true) {
|
||||
value = value * 16807 % 2147483647
|
||||
yield value;
|
||||
}
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue