Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 465 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 465 Bytes

RandomXorshift

import { RandomXorshift } from "https://code4fukui.github.io/RandomXorshift/RandomXorshift.js";

for (let j = 0; j < 2; j++) {
  const random = new RandomXorshift(2463534242);
  for (let i = 0; i < 10; i++) {
    console.log(random.next()); // 0から1の間の乱数
  }
  console.log();
}

reference