代码搜索:Random
找到约 10,000 项符合「Random」的源代码
代码结果 10,000
www.eeworm.com/read/146022/12683260
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
www.eeworm.com/read/333254/12693120
cpp random.cpp
// random.cpp -- random access to a binary file
#include // not required by most systems
#include
#include
#include // (or stdlib.h) for exit()
c
www.eeworm.com/read/145873/12698359
txt random.txt
0.0215453240554343
0.22515327254101158
0.08439607343398592
0.8428552816289909
0.42838586569773607
www.eeworm.com/read/145395/12726873
h random.h
#ifndef __RANDOM__H
#define __RANDOM__H
void randomid( char *buf, int bytes);
int rnd( int range);
#endif
www.eeworm.com/read/145395/12726924
c random.c
#include "config.h"
#if WIN32
# include
# include
#else
# if HAVE_UUID_UUID_H
# include
# endif
# ifndef HAVE_UUID_GENERATE
# include
www.eeworm.com/read/332465/12756497
h random.h
//#include
#ifndef RANDOM_NUMBER_GENERATOR
#define RANDOM_NUMBER_GENERATOR
const unsigned long maxshort=65536L;
const unsigned long multiplier=1194211693L;
const unsigned long adder=1
www.eeworm.com/read/332465/12756510
cpp random.cpp
#include"random.h"
#include
RandomNumber::RandomNumber(unsigned long s)
{
if(s==0)
randSeed=time(0);
else
randSeed=s;
}
unsigned short RandomNumber::Random(unsigned long n)
{
ra
www.eeworm.com/read/246053/12763666
h random.h
// file : random.h
// version: 1.03 [August 21, 1995]
#ifndef _random_h_
#define _random_h_
/* Mods by Art Stephens so compiles on Sun using CC, does anyone know */
/* the correct header files to
www.eeworm.com/read/332313/12764128
h random.h
/*
Copyright (c) 2001
Author: Konstantin Boukreev
E-mail: konstantin@mail.primorye.ru
Created: 04.09.2001 12:28:02
Version: 1.0.0
*/
#ifndef _random_d2b4c0ed_bd5f_4ced_92d2_5c484ab9