Call a callback only sometimes with a certian likelihood. The likelihood is higer during normal shopping hours, and really high on the weekend.
This is useful if you want to simulate load on a shopping site for instance.
npm install mostly-shopping-hours --save
var maybe =
Will call the
callback only based on certain odds.
The odds are higest during normal shopping hours and lowest in the weekend.