代码搜索:Random
找到约 10,000 项符合「Random」的源代码
代码结果 10,000
www.eeworm.com/read/133935/14017408
cpp random.cpp
#include"random.h"
#include
#include
#include
random::random()
{
srand( (unsigned)time( NULL ) );
seed= rand() ;
}
random::refresh()
{
srand( (unsigned)
www.eeworm.com/read/133935/14017415
h random.h
#ifndef RANDOM
#define RANDOM
class random
{
public:
random();
random::refresh();
unsigned short randomInteger();
double randomReal();
double between
www.eeworm.com/read/236278/14023642
cc random.cc
/***************************************************************************
Random.cc - description
-------------------
begin
www.eeworm.com/read/236278/14023647
h random.h
#ifndef RANDOM_H
#define RANDOM_H
#include
#include
#include
class Random {
private:
/* constants for a pseudo-random number generator,
for details see numeric
www.eeworm.com/read/133753/14027008
cpp random.cpp
//random.cpp
#include
#include
#include
#include //time_t
void main(void)
{
int i;
cout
www.eeworm.com/read/133753/14027462
dat random.dat
www.eeworm.com/read/133704/14029735
c random.c
www.eeworm.com/read/133539/14036458
cpp random.cpp
// This is -*- C++ -*-
// $Id: Random.cpp,v 1.3 1999/07/07 05:09:08 trow Exp $
/*
* Random.cpp
*
* Copyright (C) 1998 EMC Capital Management, Inc.
*
* Developed by Jon Trowbridge
www.eeworm.com/read/133539/14036470
h random.h
// This is -*- C++ -*-
// $Id: Random.h,v 1.3 1999/07/07 05:09:08 trow Exp $
/*
* Random.h
*
* Copyright (C) 1998 EMC Capital Management, Inc.
*
* Developed by Jon Trowbridge .
www.eeworm.com/read/235994/14037561
cpp random.cpp
//用于生成随机数的函数
#include
using namespace std;
int random(int select)
{
if(select==0)
return(rand() % 10);/*rand()函数无参数,返回一个随机数除
十用于返回一个一位数,除100用于返回一个
两位数*/
else
re