UNPKG

compare-with-biwako

Version:

This npm can compare the size of Lake Biwa and the 23 wards of Tokyo

13 lines (10 loc) 241 B
import { WARDS } from "./data/tokyo-23-wards.js"; export class Random { constructor() { this.wards = WARDS; } getRandomWard() { const index = Math.floor(Math.random() * this.wards.length); return this.wards[index]; } }