const db = require('./dice') const seedrandom = require('seedrandom') const sr = () => { const rng = seedrandom(1) return () => rng.double() } const n = 2 Array(n).fill().map(x => console.log(db.Dice.chat('roll 2d10', {rng: sr()}))) Array(n).fill().map(x => console.log(db.Dice.chat('roll 1d10', {rng: sr()}))) Array(n).fill().map(x => console.log(db.Dice.chat('roll 3d10', {rng: sr()}))) Array(n).fill().map(x => console.log(db.Dice.chat('roll 3d6', {rng: sr()}))) Array(n).fill().map(x => console.log(db.Dice.chat('roll 1d6', {rng: sr()}))) Array(n).fill().map(x => console.log(db.Dice.chat('roll 1d2', {rng: sr()}))) Array(n).fill().map(x => console.log(db.Dice.chat('roll 5d2', {rng: sr()}))) Array(n).fill().map(x => console.log(db.Dice.chat('roll 5d12', {rng: sr()}))) Array(n).fill().map(x => console.log(db.Dice.chat('roll percentile', {rng: sr()}))) console.log(db.Dice.chat('roll 4d6, reroll ones, and take the highest three x6')) console.log(db.Dice.chat('roll 4d4, reroll ones, and drop the lowest one'.toUpperCase())) console.log(db.Dice.chat('roll 1d6 x45')) console.log(db.Dice.chat('roll percentile x10')) console.log(db.Dice.chat('roll percentile x0')) console.log(db.Dice.chat('Dicebot help'))