simple underscore.js projects, walk through, & tutorial


Lottery DataBase Analysis - 13 (assembling the data)

I've created four new data fields:
var oneDollarRaw = {};
var twoDollarRaw = {};
var fiveDollarRaw = {};
var tenDollarRaw = {};

And inserted the JSON file I created from the Lottery-Input page directly into the JavaScript.

This is the JSON file for oneDollarRaw

1 Nada Yet


And this are all of the derived values we get for the values in oneDollarRaw;

(NOTE: the oneDollarRaw ticket price comes out wrong, so I will manually reset this value prior to caring this data forwward.  I had assumed that the first cash prize would always equal the ticket price, but turns out this isn't the case.  And you know what they say, where there's one error...)

var oneDollarDerived = {
nada yet
nada yet
nada yet
nada yet
nada yet
nada yet

nada yet
nada yet

nada yet
nada yet
nada yet
nada yet
nada yet

nada yet
nada yet
nada yet
};

Anywar, from here, I'll do the same thing for the other three data sets (twoDollarRaw, fiveDollarRaw, & tenDollarRaw) sight unseen.  And hopefully, I'll catch any other weird (i.e. incorrect values) that arise.




_.moreUnderscoreProjects

© Copyright 2013 Brett Paufler


Please Note: I am an idiot.  No seriously.  The odds of my gambling odds calculations being correct are likely on par with my odds of ever winning.  You have been warned.