Skip to content

Latest commit

 

History

History
9 lines (8 loc) · 379 Bytes

README.md

File metadata and controls

9 lines (8 loc) · 379 Bytes

algorithm-red-envelope

利用倒数写的一个简单的红包算法,将抽取顺序和结果解耦(最后1次抽取值将略高于前n次,取整)。

test

lua test.lua

other

今年过年各类红包的发遍大江南北,不知道有多少猴子是乘兴而来,败兴而归;感叹算法坑爹之余,把自己写的红包算法给诸君玩赏一二。