mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-14 07:57:57 -05:00
13 lines
246 B
TypeScript
13 lines
246 B
TypeScript
export default function* randish() {
|
|
let x = 0.123;
|
|
|
|
while (true) {
|
|
x -= (x * x + 1) / (2 * x + 0.1);
|
|
x -= (x * x + 1) / (2 * x + 0.1);
|
|
x -= (x * x + 1) / (2 * x + 0.1);
|
|
|
|
const y = 1000 * x;
|
|
yield y - Math.floor(y);
|
|
}
|
|
}
|