NEURON
mcran4.cpp File Reference
#include <stdio.h>
#include <stddef.h>
#include <math.h>
#include <float.h>
#include <stdlib.h>
#include "mcran4.h"

Go to the source code of this file.

Functions

double mcell_lowindex ()
 
void mcell_ran4_init (uint32_t low)
 
double mcell_ran4 (uint32_t *high, double *x, unsigned int n, double range)
 
double mcell_ran4a (uint32_t *high)
 
uint32_t mcell_iran4 (uint32_t *high)
 
uint32_t nrnRan4int (uint32_t *idx1, uint32_t idx2)
 
double nrnRan4dbl (uint32_t *idx1, uint32_t idx2)
 

Variables

static uint32_t lowindex = 0
 
static const double SHIFT32 = 1.0 / 4294967296.0
 

Function Documentation

◆ mcell_iran4()

uint32_t mcell_iran4 ( uint32_t *  high)

Definition at line 71 of file mcran4.cpp.

◆ mcell_lowindex()

double mcell_lowindex ( )

Definition at line 51 of file mcran4.cpp.

◆ mcell_ran4()

double mcell_ran4 ( uint32_t *  high,
double *  x,
unsigned int  n,
double  range 
)

Definition at line 59 of file mcran4.cpp.

◆ mcell_ran4_init()

void mcell_ran4_init ( uint32_t  low)

Definition at line 55 of file mcran4.cpp.

◆ mcell_ran4a()

double mcell_ran4a ( uint32_t *  high)

Definition at line 67 of file mcran4.cpp.

◆ nrnRan4dbl()

double nrnRan4dbl ( uint32_t *  idx1,
uint32_t  idx2 
)

Definition at line 117 of file mcran4.cpp.

◆ nrnRan4int()

uint32_t nrnRan4int ( uint32_t *  idx1,
uint32_t  idx2 
)

Definition at line 75 of file mcran4.cpp.

Variable Documentation

◆ lowindex

uint32_t lowindex = 0
static

Definition at line 49 of file mcran4.cpp.

◆ SHIFT32

const double SHIFT32 = 1.0 / 4294967296.0
static

Definition at line 116 of file mcran4.cpp.