代码搜索:random
找到约 10,000 项符合「random」的源代码
代码结果 10,000
www.eeworm.com/read/383321/8955171
inl random.inl
//random.inl 随机函数(方法)定义
// Ver 1.0.0.0
// 版权所有(C) 何渝, 2002
// 最后修改: 2002.5.31.
#ifndef _RANDOM_INL
#define _RANDOM_INL
//产生一个[0,1]区间内均匀分布伪随机数
inline double
rand_01_One(double& seed)
{
www.eeworm.com/read/383321/8955187
h random.h
//random.h 宏定义及随机函数(方法)原型头文件
// Ver 1.0.0.0
// 版权所有(C) 何渝, 2002
// 最后修改: 2002.5.31.
#ifndef _RANDOM_H
#define _RANDOM_H
#define RandCoef2053 2053
#define RandCoef13849 13849
#define MOD
www.eeworm.com/read/284183/8956478
h random.h
#include
/* variables are declared static so that they cannot conflict
with names of */
/* other global variables in other files. See K&R, p 80, for
scope of static */
static double
www.eeworm.com/read/186151/8957282
ase random.ase
www.eeworm.com/read/186113/8959012
h random.h
//$$ include.h include files required by various versions of C++
#ifndef INCLUDE_LIB
#define INCLUDE_LIB
//#define use_namespace // define name spaces
//#define S
www.eeworm.com/read/427091/8977884
cpp random.cpp
#include "stdafx.h"
#include "Random.h"
CRandomMT::CRandomMT() : left(-1)
{
SeedMT(DEFAULT_SEED);
}
CRandomMT::CRandomMT(ULONG _seed) : left(-1), seedValue(_seed)
{
SeedMT(seedValue);
}
www.eeworm.com/read/427091/8977897
h random.h
#if !defined(RANDOM_GENERATOR_INCLUDED)
#define RANDOM_GENERATOR_INCLUDED
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include
#include
const int N =
www.eeworm.com/read/382751/9002941
c random.c
/*
** 2001 September 15
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiven