var kelly = require('kelly'); kelly(1, 0.6); // => 0.19999999999999996
$ npm install kelly
var kelly = require('kelly');
Given two Number arguments, where
b is the net odds received on the wager
p is the probability of winning, returns the fraction of the current
bankroll (as a Number) that one should bet to maximize the long-run growth
rate of the bankroll.