You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/internal/mersenne/mersenne.ts
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,9 @@ import Twister from './twister';
8
8
exportinterfaceMersenne{
9
9
/**
10
10
* Generates a random float between `[0, 1)`.
11
+
* This method is called `next` so that it could be used as a [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_iterator_protocol)
11
12
*/
12
-
nextReal(): number;
13
+
next(): number;
13
14
14
15
/**
15
16
* Sets the seed to use.
@@ -30,7 +31,7 @@ export default function mersenne(): Mersenne {
0 commit comments