产生五位随机数

public static class Sys
{
    
// Fields
    private static Random randObj = new Random();

    
// Methods
    public static int Random()
    {
        
int num = Environment.TickCount + randObj.Next();
        
return (((num = (num * 0x343fd+ 0x269ec3>> 0x10& 0x7fff);
    }
}

 

posted @ 2010-10-26 14:04  smodi  阅读(568)  评论(0编辑  收藏  举报