R2
#Quasirandom #乱数
https://gyazo.com/b614e3e20edb0c52d3410cabc82b370d
R2は、Martin Robertsによって2018年に発表されたQuasirandom sequence
やっていることはただの多次元Additive Recurrenceだが、係数として掛けるPlastic numberがよく効いている
http://extremelearning.com.au/unreasonable-effectiveness-of-quasirandom-sequences/
https://web.archive.org/web/20260627202419/http://extremelearning.com.au/unreasonable-effectiveness-of-quasirandom-sequences/
Desmos
https://gyazo.com/27e73f180ce13c13084605a119176f5a
https://www.desmos.com/calculator/oje15a1zce
実装
code:ts
const g2 = 1.32471795724474602596; // plastic number
const a1 = 1.0 / g2;
const a2 = 1.0 / (g2 * g2);
function r2( n: number ): number, number {
return [
( 0.5 + a1 * n ) % 1.0,
( 0.5 + a2 * n ) % 1.0,
];
}
/icons/hr.icon
https://www.youtube.com/watch?v=eEhonWslTaw
これはtiger yamato