代码搜索:Random
找到约 10,000 项符合「Random」的源代码
代码结果 10,000
www.eeworm.com/read/349837/10797914
cpp algo0211.cpp
void CreateList_L(LinkList &L, int n) { // 算法2.11
// 逆位序输入(随机产生)n个元素的值,建立带表头结点的单链线性表L
LinkList p;
int i;
L = (LinkList)malloc(sizeof(LNode));
L->next = NULL; // 先建立一个带头结点
www.eeworm.com/read/349720/10802124
cpp geneticalgorithm.cpp
#include "StdAfx.h"
#include ".\geneticalgorithm.h"
CGeneticAlgorithm::CGeneticAlgorithm(void)
: fInitPop(0)
{
jrand = 0;
rndx2 = 0;
rndcalcflag = 0;
memset(oldrand,0,sizeof(double)*
www.eeworm.com/read/349646/10808720
m pick.m
function [i,j] = pick(ndx)
% PICK Pick an entry at random from a vector
% function [i,j] = pick(ndx)
%
% i = ndx(j) for j ~ U(1:length(ndx))
dist = normalize(ones(1,length(ndx)));
j = sample_d
www.eeworm.com/read/349646/10809716
m pick.m
function [i,j] = pick(ndx)
% PICK Pick an entry at random from a vector
% function [i,j] = pick(ndx)
%
% i = ndx(j) for j ~ U(1:length(ndx))
dist = normalize(ones(1,length(ndx)));
j = sample_d
www.eeworm.com/read/275194/10830227
cpp ex-ran.cpp
/*************************** EX-RAN.CPP ********************* AgF 2001-11-11 *
* *
* Example showing how to use random number
www.eeworm.com/read/274778/10852969
asm 冒泡排序的课程设计.asm
data segment
random db 100 dup (?)
cnt equ 9
mess db 'please input the numbers you want to sort',13,10,'$'
data ends ;定义数据段和缓冲区random
code segment
main p
www.eeworm.com/read/419541/10863157
c csort.c
/************************************************************************
名称: csort.c
一个动画程序来显示6个排序算法的动作。
运行这个程序要求包含
www.eeworm.com/read/348847/10864345
c tv.c
#include
#include
#include
#include
#include
#include "intrins.h"
#define uchar unsigned char
#define uint unsigned int
#define ulo
www.eeworm.com/read/419202/10880150
java caishu1.java
package yang;
class caishu1
{
int number()
{
int a;
double b;
b=Math.random();
b=b*100;
a=(int)b;
return a;
}
}