import numpy as np
Weyl sequence
Weyl sequence는 0과 1 사이의 난수를 발생시키는 순열로, 무리수
즉, 무리수
예시
= np.sqrt(2) alpha
= [(i * alpha) % 1 for i in range(0, 100)] lst
10] lst[:
[0.0,
0.41421356237309515,
0.8284271247461903,
0.24264068711928566,
0.6568542494923806,
0.0710678118654755,
0.4852813742385713,
0.8994949366116654,
0.31370849898476116,
0.727922061357857]
참고
Wikipedia contributors. (2022, November 27). Weyl sequence. Wikipedia. https://en.wikipedia.org/wiki/Weyl_sequence