Skip to content

Instantly share code, notes, and snippets.

View Designer023's full-sized avatar

Carl Topham Designer023

View GitHub Profile
@Designer023
Designer023 / generator.js
Created April 2, 2019 09:24 — forked from worgarside/generator.py
Random Account & Transaction Generator
const randomint = (start, end) => {
let diff = end - start;
return Math.floor(Math.random() * diff) + start
}
const chance = (rate=0.5) => {
return Math.random() > rate ? true : false;
}
const pad = (n, width, z) => {