Skip to content

Instantly share code, notes, and snippets.

View DaveBben's full-sized avatar

Dave Bennett DaveBben

  • Philadelphia, PA
View GitHub Profile
let ops = [
{ input: [.7], output: [.5] },
{ input: [.71], output: [.5] },
{ input: [.708], output: [.5] },
{ input: [.704], output: [.53] },
{ input: [.708], output: [.53] },
{ input: [.68], output: [.55] },
{ input: [.58], output: [.46] },
{ input: [.7], output: [.5] },
]
for (let i = 0; i < 30000; i += 1) {
ops.push({ input: [getRandomArbitrary(0.65, 0.75)], output: [getRandomArbitrary(0.48, 0.59)] })
}
function getRandomArbitrary(min, max) {
return Math.random() * (max - min) + min;
}