random-redpack js 版本模仿微信红包算法 npm install random-redpack --save Usage const randomRedPack = require('random-redpack') let money = randomRedPack(isDecimal, remainParts, remainMoney)