Red envelope random algorithm ideas

 Summary of the practice of red envelope algorithm with upper and lower limits

入参:
    最小红包min
    最大红包max
    红包总额total
    红包数量count

思路:
    先预留count份min
    其余的做随机

 

Guess you like

Origin blog.csdn.net/xx897115293/article/details/108467612