搜索资源列表
gen_rand
- 这段源码可以在VC上运行,稍加改动就可以在其他C或C++下运行。它能以70多M字节/秒产生真随机数。为了简单这里产生10M字节的随机数,放在rand.dat文件里。可供考察。 之所以能产生随机数原理前面重复多次了。这里用的方法是先建造有规律的数组,以字节为单位,数值从0到255,不断重复。然后对这个数组进行随机排序,随机数来自Nm()函数,它读系统计数器的低32位数值做模256运算得到交换序列号n1,并让序列号为i和n1的数据交换数值,并充填结果数组。-This code can be
bubblesort
- 通用冒泡排序法的C++源码,例程为电脑随机数排序。-Generic bubble sort method C++ source routine sort of computer random number.
01
- 堆排序和基数排序的C++算法实现,要求以命令选择输出,如输入命令1随机生成100个随机数,程序可以运行,但是还存在一点点问题-Heap sort, radix sort C++ algorithm requires a command to select the output as input commands randomly generated 100 random numbers, the program can be run, but there is a little problem
random-number-by-myself
- 自编随机数C程序编程,可以用于平时抽号、无规则排序、无规则弹号使用。-Random number is compiled in C programming, can be used for at ordinary times, no rules, no rules no. Use.
First_Test1
- 1、使用System.Array类的方法获取已知数组(数组元素为80,90,67,89,78,85,45,69,77,95)的维数、长度,并对数组排序、反转。 提示:Rank,Length,Sort(),Reverse() 2、 使用Random方法生成随机数。数组A中有8个互不相同的元素,数组B中有5个互不相同的元素,A和B中的数为100以内的正整数。编程产生数组C,C中包含在A中但不在B中的元素。 任意输入两个正整数a,b, 求a+b的和, a,b的取值范围为1—10100
sort
- 随机函数产生一百,一千,一万和十万个随机数,用快速排序,直接插入排序,冒泡排序,选择排序的排序方法排序,并统计每种排序所花费的排序时间和交换次数。其中,随机数的个数由用户定义,系统产生随机数。并且显示他们的比较次数。(Random function produces 100,1000,10,000 and 100,000 random numbers, which are sorted by quick sorting, direct insertion sorting, bubble sort