随机数C# js

        var timesooo = GetRandomNum(1000, 9999);
        timestamp = new Date().getTime().toString() + '-' + timesooo + '-' + '<%=MPJY.SystemGlobalData.CURRENT_USERID%>';
        function GetRandomNum(Min, Max) {
            var Range = Max - Min;
            var Rand = Math.random();
            return (Min + Math.round(Rand * Range));
        }

int num=new System.Random().Next(10000,99999);

原文地址:https://www.cnblogs.com/panjiayuan/p/4273877.html