首页 | 本学科首页   官方微博 | 高级检索  
     检索      

微信红包随机金额生成算法模拟及应用
引用本文:张志雄,张静之,赵春锋.微信红包随机金额生成算法模拟及应用[J].教育教学论坛,2019(10):51-53.
作者姓名:张志雄  张静之  赵春锋
作者单位:1.上海工程技术大学工程实训中心
摘    要:构造了微信红包随机金额的模拟算法,并验证了模拟算法的有效性。通过模拟算法,产生了大量微信红包随机金额数据,分析这些数据表明:(1)微信红包随机金额呈正态分布,是在红包份数较少的情况下,表现出的一种巧合,在红包份数较多的情况下,随机金额并不符合正态分布;(2)对一个微信随机红包,概率上,每个人抢到的红包金额是相等的,即抢红包的先后次序对抢到金额的多寡没有影响;(3)对一个微信随机红包,越晚产生的随机金额,其波动范围越大,即先抢红包的人,抢到平均金额的可能性比较高,后抢的人,要么抢到较小的金额,要么抢到较大的金额。

关 键 词:微信红包  微信随机红包模拟算法  正态性检验

Algorithm of Generating WeChat Random Red Envelope and Its Application
ZHANG Zhi-xiong,ZHANG Jing-zhi,ZHAO Chun-feng.Algorithm of Generating WeChat Random Red Envelope and Its Application[J].jiaoyu jiaoxue luntan,2019(10):51-53.
Authors:ZHANG Zhi-xiong  ZHANG Jing-zhi  ZHAO Chun-feng
Institution:(Engineering Training Center, Shanghai University of Engineering Science,Shanghai 201620,China)
Abstract:A simulation algorithm was constructed for generating WeChat random red envelope,and was validated. The conclusions were drew by analyzing mass of data generated by the simulation algorithm:(1) the normal distribution of lucky money in a WeChat random red envelope was accidentally coincidental in the condition of small amount of lucky money pieces;(2) For a WeChat randomred envelope,the lucky money generated at each time position is equal in probability method,i.e.,the order of drawing red envelope has no effect on the amount of lucky money;(3) For a WeChat random red envelope,the later lucky money generated,the greater the fluctuation range of lucky money was. That means the lucky money generated first was more probably equal to the average of lucky money,and that generated later more probably deviated fromthe average,i.e.,either much smaller or much greater than the average.
Keywords:WeChat red envelope  test of normality  method for normal testing
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号