йŮU20vsŮU23

ƶȵĸĸξ˲źͼĸĸֻĸĸĿеôĴݵɷʱȴ˵,Ϊź˳ףһ̣ԲҪȻ㲻˱ԼǾֱϴ룺/**?*ThisisamethodofJavarandomnumbergenerator.?*??*@paramx?*??????Aseedforgenerator.?*@returnAfloatrandomvaluebetween[0.0,1.0)?*/publicstaticfloatrandomJava(java.lang.Integerx){??return(float)(newjava.util.Random(1000*x).nextDouble());//1000Ӽ}DzݣStarttestingrandomJava(),test:Generate10000numbers(1D).TestingrandomJava()completed,usingtime:11ms.StarttestingrandomJava(),test:Generate10000numbers(2D).TestingrandomJava()completed,usingtime:8ms.dz㷨ٶȿһɡݼߵ˽⵽ĵ̨˲ͨڻͷ⡱ŵƽ̨ĻӷǷֻС˾աʺ߱׼ȵԭȥ11µף֥սֹֽͨͣ벿ƽ̨ʹһЩСֽ˾ʧȥǿķֶΡ
教育部“智慧教育示范区”创建与发展专区