random.h

来自「常用数据结构算法代码库」· C头文件 代码 · 共 46 行

H
46
字号
/****************************************************************************
*
*					Copyright (C) 1991 Kendall Bennett.
*							All rights reserved.
*
* Filename:		$RCSfile: random.h $
* Version:		$Revision: 1.2 $
*
* Language:		ANSI C
* Environment:	any
*
* Description:	Header file for random number module
*
* $Id: random.h 1.2 91/09/27 03:11:08 kjb Exp $
*
* Revision History:
* -----------------
*
* $Log:	random.h $
* Revision 1.2  91/09/27  03:11:08  kjb
* Added compatibility with C++.
* 
* Revision 1.1  91/08/16  10:54:55  ROOT_DOS
* Initial revision
* 
****************************************************************************/

#ifndef	__RANDOM_H
#define	__RANDOM_H

/*----------------------- Function Prototypes -----------------------------*/

#ifdef __cplusplus
extern "C" {
#endif

void randinit(long s);
long randomlong(long range);
double randomfloat(void);
double chisquare(int N,int r,long s);

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?