登录
首页 » 算法 » 一种最大数量的随机抽取

一种最大数量的随机抽取

于 2022-03-03 发布 文件大小:2.34 kB
0 173
下载积分: 2 下载次数: 1

代码说明:

输入一个最大数字,随机数抽奖-importation of a maximum number of random draw

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 51单片机源代码
    很详细 请认准阅读FPGA控制LCD1602调试笔记 有原理介绍和源代码 此资料来自百度文库(http://wenku.baidu.com/) 您目前所看到的文档是使用的抱米花百度文库下载器所生成
    2022-02-05 20:50:35下载
    积分:1
  • 1.简介 本程序是用纯C语言编的一个基于菜单命令行的数据库系统。可以创建多个数据库,数据库表,字段。其中字段的类型只能为整形,浮点型,字符型和字符串型(最大长度...
    1.简介 本程序是用纯C语言编的一个基于菜单命令行的数据库系统。可以创建多个数据库,数据库表,字段。其中字段的类型只能为整形,浮点型,字符型和字符串型(最大长度确定,不能改变)。 2.功能 a)数据库存储: 一个数据库存储于一个文件中,打开文件将数据库载入到内存。 保存时将内存中数据重新写到文件中去。 b)数据库管理: 提供数据库的创建,表的创建,字段的创建 提供对数据的查询,删除,修改,排序功能 c)支持SQL部分语句: 支持SELECT 和DELETE语句-1. Introduction of this program is pure C language based on a series of menu command-line database system. You can create multiple databases, database tables, fields. The type field which can only plastic, floating point, character and string (maximum length and can not be changed). 2. A function) database storage : a database stored in a document, the document will open the database to include memory. When will preserve memory data re-wrote a document. B) database management : to provide database creation, table creation, the field for the creation of data inquiries, delete, modify, sequencing feature c) some support SQL statement : support DELETE and SELECT statements
    2023-05-12 09:50:03下载
    积分:1
  • 经典循环赛日程表
    经典循环赛日程表算法-classic round robin schedule algorithm
    2023-05-19 15:40:03下载
    积分:1
  • and good books for the FORTRAN is the grammatical rules and algorithms book devo...
    而FORTRAN的好书则是语法规则和算法书倾注了极大的精力去寻找的
    2022-03-30 14:57:51下载
    积分:1
  • SOR解线性方程组(逐次超松弛)是Gauss
    SOR法解线性方程组(逐次超松弛法)是Gauss-Seidel的改进方法-SOR method for linear equations (successive over-relaxation method) is the Gauss-Seidel Method
    2022-08-17 10:25:41下载
    积分:1
  • 新型GA
    一种好的改进遗传算法function [opy,optimy]=GA(pt,gennum,psize)% 输入参数:% pt       m*n的加工时间矩阵(n是工件数目,m是机器数目)由已知给的T矩阵,可得n=100,m=10% gennum   迭代的次数(代数)% psize    种群的规模大小%输出参数:% opy       最优的Makespan值pc=0.9;%交叉因子pm=0.1;%变异因子[m,n]=size(pt);current_gen=1;%current_gen means the current generationnewgen=zeros(psize,n+1); %mewgen is the new generation of the populationnewgen(1:psize,1:n)=rand(psize,n);%主种群初始化,0-1之间的随机数 %Generalize the initial groupfather=zeros(2,n); %father is used to store the two genes for crossover and mutation avgen=zeros(1,gennum); %avgen is the matrix of the average of all the generationsoptimx=zeros(1,n);optimy=ones(1,gennum);%Generalize the initial groupfor i=1:psize    [Ya,pop(i,1:n)]=sort(newgen(i,1:n));%种群排序,实数编码转换为自然数编码 随机生成的0-1之间的小数进行排序然后取每个从小到大数对应的位置    newg
    2022-03-18 14:25:18下载
    积分:1
  • 员工管理系统
    员工管理系统
    2022-01-23 10:31:08下载
    积分:1
  • 这是硕士生计机软件专业组合数学的一个换位演示,仅供参考。...
    这是硕士生计算机软件专业组合数学的一个换位法算法演示,仅供参考。-This is the master computer software professional combination of a mathematical algorithm law transposition demonstration purposes only.
    2023-08-07 02:45:03下载
    积分:1
  • 这三段C程序能够产生符合高斯、瑞利和泊松分布的随机数,并且包括关于它们的说明文档...
    这三段C程序能够产生符合高斯、瑞利和泊松分布的随机数,并且包括关于它们的说明文档-These three paragraphs C program to generate consistent with Gaussian, Rayleigh and Poisson distribution of random numbers, and includes documentation about them
    2022-01-31 02:36:39下载
    积分:1
  • 双色球随机软件源码
    void CRandDlg::OnOK()  { // TODO: Add extra validation here int a[7]; int b=0; srand((unsigned)time( NULL ));  for (int i=0;i
    2022-03-24 20:24:18下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载