代码搜索:Random
找到约 10,000 项符合「Random」的源代码
代码结果 10,000
www.eeworm.com/read/233472/14149866
cpp random.cpp
#include "Random.h"
int Random::reseed()
/*
Post: The seed is replaced by a pseudorandom successor.
*/
{
seed = seed * multiplier + add_on;
return seed;
}
Random::Random(bool ps
www.eeworm.com/read/233472/14149873
h random.h
#ifndef _RANDOM_H_
#define _RANDOM_H
#include
#include
#include
#include
class Random {
public:
Random(bool pseudo = true);
double random_
www.eeworm.com/read/233472/14149876
o random.o
www.eeworm.com/read/231996/14212215
c random.c
#include
#include
#include
#include "pbc_random.h"
#include "pbc_utils.h"
#include "pbc_memory.h"
static void deterministic_mpz_random(mpz_t z, mpz_t limit, void *data)
{
www.eeworm.com/read/129922/14217429
c random.c
#include
#include
void main(void)
{
int i;
printf("Values from rand\n");
for (i = 0; i < 100; i++)
printf("%d ", rand());
printf("Values from rando
www.eeworm.com/read/129726/14231225
c random.c
#include
#include
#include
void main()
{
int gd=0,gm;
int i;
initgraph(&gd,&gm,"");
for (i=0;i
www.eeworm.com/read/231193/14248096
cpp random.cpp
#include "random.h"
double ran0(long *ideum)
//Park & Miller divelope "the lowest" randnum genitor
// it return 0.0-1.0
{
long k;
double ans;
*ideum^=MASK;
k=(*ideum)/IQ;
www.eeworm.com/read/231193/14248099
h random.h
#include
#define IA 16807
#define IM 2147483647
#define AM (1.0/IM)
#define IQ 127773
#define IR 2836
#define MASK 123459876
#define NTAB 32
#define NDIV (1+(IM-1)/NTAB)
#define EPS
www.eeworm.com/read/231188/14248292
h random.h
//----------------------------------------------------------------------------
// random.h
//----------------------------------------------------------------------------
#ifndef _RANDOM
#define