代码搜索:Random
找到约 10,000 项符合「Random」的源代码
代码结果 10,000
www.eeworm.com/read/326065/13168407
asv cross.asv
function Ret=Cross(PCross,LenChrom,Individuals,SizePop,Opts,Pop)
% In this function,it fulfils a crossover among Chromosomes
% PCross input : probability of crossover
% LenChrom input : Lengt
www.eeworm.com/read/326065/13168418
m cross.m
function Ret=Cross(PCross,LenChrom,Individuals,SizePop,Opts,Pop)
% In this function,it fulfils a crossover among Chromosomes
% PCross input : probability of crossover
% LenChrom input : Lengt
www.eeworm.com/read/326053/13168855
cpp 程序12.7:附加练习1.cpp
/* 程序12.7:附加练习1.cpp:*/
#include //包含头文件
#include //包含头文件
using namespace std; //使用名字空间std
class RandomNumbers
{
int seed;
double count;
public:
//声明变量seed默认值为0
www.eeworm.com/read/241049/13174824
h randnumber.h
#include "time.h"
//used to generate a random number from the current seed
const unsigned long maxshort=65536L;
const unsigned long multiplier=1194211693L;
const unsigned long adder=12345L;
c
www.eeworm.com/read/241049/13174832
cpp randnumber.cpp
#include "randnumber.h"
CRandNumber::RandomNumber(unsigned long s)
{
if(s==0)
randSeed=time(0);
else
randSeed=s;
}
unsigned short CRandNumber::Random(unsigned long n)
{
randSeed=m
www.eeworm.com/read/325904/13176103
readme
This package implements a general purpose Reed-Solomon encoding and decoding
facility. See the rs.3 man page for details.
To install, simply do the following after extracting this tarball into
an emp
www.eeworm.com/read/240985/13182867
cpp game.cpp
// GAME.CPP--Example from Chapter 3 "An Introduction to C++"
#include
#include
#include
const DODGERS = 0;
const GIANTS = 1;
void main(void)
{
int sc
www.eeworm.com/read/325654/13191899
cs validatecode.aspx.cs
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using
www.eeworm.com/read/240743/13200810
v alu(use always).v
//******************
//
//copyright 2007, DTK
//all right reserved
//
//project name: : test5
//filename : file_always_block
//author : wangyang
//data : 2007/8/2
//version : 1.0
//