搜索资源列表
JosephProblem-C
- 用C语言解决约瑟夫环问题,约瑟夫环问题描述:设编号为1,2,…,n(n>0)个人按顺时针方向围坐一圈,每人持有一个正整数密码(可用随机数产生)。开始时任意给出一个报数上限值m,从第一个人开始顺时针方向自1起顺序报数,报到m时停止报数,报m的人出列,将他的密码作为新的m值,从他在顺时针方向上的下一个人起重新自1起顺序报数,报到新m值的人出列;如此下去,直到所有人全部出列为止。要求设计一个程序模拟此过程,并给出出列人的编号序列。
C#编写体育彩票
- C#编写体育彩票 用6位随机数来演示在C#中使用随机数 从而自己制作自己的彩票软件
C源代码实例
- 包含220个C语言的各种源程序:001 第一个C程序 002 运行多个源文件 003 求整数之积 004 比较实数大小 005 字符的输出 006 显示变量所占字节数 007 自增/自减运算 008 数列求和 009 乘法口诀表 010 猜数字游戏 011 模拟ATM(自动柜员机)界面 012 用一维数组统计学生成绩 013 用二维数组实现矩阵转置 014 求解二维数组的最大/最小元素 015 利用数组求前n个
WL40987330 C语言算法集
- 目录 第一部分 基础篇 001 第一个C程序 002 运行多个源文件 003 求整数之积 004 比较实数大小 005 字符的输出 006 显示变量所占字节数 007 自增/自减运算 008 数列求和 009 乘法口诀表 010&
C++数值计算-随机数-舍选法-Γ分布、泊松分布和二项式分布随机数
- C++ 代码 数值计算-随机数-舍选法-Γ分布、泊松分布和二项式分布随机数
zigurat_demo2
- 一个随机数生成类,值得下载--An random class,recommend
random-inc
- 用c语言编写的产生正态随机数的源代码: 算法一产生12个(0,1)平均分布的随机函数,用大数定理可以模拟出正态分布。 算法二用到了数学中的雅可比变换,直接生成正态分布,但此算法在计算很大规模的数时 会出现溢出错误。-With the c language normal random number generation source code: Algorithm 1 produces 12 (0,1) the average distribution of the rand
localRand
- 常用随机数发生器,C实现 /* * 文件包含了6个函数,它们能产生符合相应分布的规律的随机数: * GenUniformRnd : 产生一个随机数,符合均匀分布。(伪随机序列) * GenBernoulliRnd : 产生一个随机数,符合伯努利分布。 * GenBinomialRnd : 产生一个随机数,符合二项分布。 * GenPoissonRnd : 产生一个随机数,符合泊松分布。 * GenExponentRnd : 产生一个随机数,符合指数分布。
distribution
- 产生均匀分布、正态分布、瑞利分布、泊松分布这几种分布的随机数,包括实现各部分的子函数和主函数-Produce uniform distribution, normal distribution, Rayleigh distribution, Poisson distribution random number distribution of these types, including the realization of the various parts of the Functions a
general-random-number-in-C-Sharp
- 在C#中,产生一般随机数用Random即可,但是,若要产生服从特定分布的随机数,就需要一定的算法来支持了,产生服从正态分布、泊松分布、指数分布以及负指数分布随机数的方法-A general random number in C#, you can use Random, but to have to obey a particular distribution of random numbers, you need a certain algorithm to support, resultin
random
- 这是一个产生范围在(-255,255)随机数的C函数,其中范围可有自己确定,结果生成一个数据文件,可被其他C程序作为头文件引用,在需要大量测试数据的时候特别有用-This is a have a range of (-255,255) random number of C functions, the scope of which may have their own identification, the results generate a data file may be other pr
1641010123_898604759
- 生成均匀分布伪随机数的c程序代码,用来生成gauss随即数-Generate uniformly distributed pseudo-random number in c programming code, used to generate the number of Gauss immediately
Write-ReadFile
- C++读写文件。Win32程序,产生100个随机数,然后将产生的数存储为10行10列的文件格式,最后从文件中读取这些数并按照原格式显示出来。-The C++ Programming file. It can create 100 numbers and write them to the txt file, in the end read it to print.
ran
- c语言中的随机数生成程序,希望对大家有帮助,谢谢您的支持和鼓励。-c language random number generator, we want to help, thank you for your support and encouragement.
OpenSSL随机数
- Openssl维护一个内部随机状态数据(md_rand.c中定义的全局变量state和md),通过对这些内部数据计算摘要来生成随机数。(Openssl maintains an internal state of random data (global variables state and MD defined in md_rand.c), through the calculation of the internal data of the generated random number.)
随机数
- 使用C语言编程实现在控制台输出10个0到1之间的随机数(Using c language programming to achieve the output of 10 0 to 1 random number in the console)
泊松分布随机数2
- 使用C语言产生泊松分布随机数,可以对输入的参数进行输入并修改需要产生的随机数个数(Using C language to produce Poisson distribution random numbers)
正态分布随机数
- 实现正态分布随机数,可以控制平均值和标准差(The realization of normal distribution random number)
Desktop5
- 用C语言产生正态分布随机数、泊松分布随机数和瑞丽分布随机数(Using C language to produce normal distribution random number, Poisson distribution random number and Rayleigh distribution random number)
C#生成正态分布数
- 用C#生成符合正态分布数,并在界面进行显示(Using C# to generate normal distribution numbers, and display them at the interface.)