ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions | Variables
ranfill.cpp File Reference

(Last Changed on May 23, 2017 for git-revision 87e69b555f6d0d3a187be62ca72c0eaa283cfd61.)

Description not yet available. More...

#include <fvar.hpp>
#include <math.h>

Go to the source code of this file.

Macros

#define IA1   1366
 
#define IA2   4561
 
#define IA3   8121
 
#define IC1   150889
 
#define IC2   51349
 
#define IC3   28411
 
#define M3   134456
 

Functions

double auto_rand (long int &idum, int reset)
 Random number generator. More...
 
double randn (long int &n)
 Returns a random number. More...
 
void reinitialize_auto_rand ()
 Description not yet available. More...
 

Variables

constexpr int M1 = 714025
 
constexpr int M2 = 243000
 
constexpr float RM1 = 1.0f / M1
 
constexpr float RM2 = 1.0f / M2
 

Detailed Description

Description not yet available.

Definition in file ranfill.cpp.

Macro Definition Documentation

#define IA1   1366

Definition at line 32 of file ranfill.cpp.

Referenced by auto_rand().

#define IA2   4561

Definition at line 53 of file ranfill.cpp.

Referenced by auto_rand().

#define IA3   8121

Definition at line 43 of file ranfill.cpp.

Referenced by auto_rand().

#define IC1   150889

Definition at line 33 of file ranfill.cpp.

Referenced by auto_rand().

#define IC2   51349

Definition at line 54 of file ranfill.cpp.

Referenced by auto_rand().

#define IC3   28411

Definition at line 44 of file ranfill.cpp.

Referenced by auto_rand().

#define M3   134456

Definition at line 42 of file ranfill.cpp.

Referenced by auto_rand().

Function Documentation

double auto_rand ( long int &  idum,
int  reset 
)
double randn ( long int &  n)

Returns a random number.

Parameters
nseed

Definition at line 149 of file ranfill.cpp.

void reinitialize_auto_rand ( )

Variable Documentation

constexpr int M1 = 714025

Definition at line 29 of file ranfill.cpp.

Referenced by auto_rand().

constexpr int M2 = 243000

Definition at line 50 of file ranfill.cpp.

Referenced by auto_rand().

constexpr float RM1 = 1.0f / M1

Definition at line 39 of file ranfill.cpp.

Referenced by auto_rand().

constexpr float RM2 = 1.0f / M2

Definition at line 60 of file ranfill.cpp.

Referenced by auto_rand().