yjryu / UI_Layout star
File name
Commit message
Commit date
yjryu 2024-01-10 2041009 240110 류윤주 commit UNIX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import defaultSource from "./defaultSource.js";
import irwinHall from "./irwinHall.js";
export default (function sourceRandomBates(source) {
  var I = irwinHall.source(source);
  function randomBates(n) {
    // use limiting distribution at n === 0
    if ((n = +n) === 0) return source;
    var randomIrwinHall = I(n);
    return function() {
      return randomIrwinHall() / n;
    };
  }
  randomBates.source = sourceRandomBates;
  return randomBates;
})(defaultSource);
X