生成固定红包与随机红包,随机红包金额依据截尾正态分布算法来生成 >Generate fixed red package and random red package, random red envelopes based on truncated normal distribution algorithm to generate
实例如下:
#! /usr/bin/python
# -*- coding: utf-8 -*-
import random
class CDispatch:
def __init__(self,sum,count):
self.sum = sum
self.count=count
#print 'init here sum =',sum,',count =',count
def __del__(self):
pass
#print 'run del the class