ScalES-PPM
Loading...
Searching...
No Matches
yafrand.c File Reference

compute uniformly distributed floating point numbers More...

#include <float.h>
#include <stdlib.h>
#include <inttypes.h>
#include <math.h>
#include "core/yarandom.h"
#include "core/ppm_random.h"

Functions

double PPM_ya_frandom (void)
 
float PPM_ya_frandomf (void)
 
double PPM_ya_fsgrandom (void)
 
float PPM_ya_fsgrandomf (void)
 

Detailed Description

compute uniformly distributed floating point numbers

Version
1.0
Author
Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de

Function Documentation

◆ PPM_ya_frandom()

double PPM_ya_frandom ( void )

PRNG function for uniformly distributed double precision floating-point quantities This routine is synonymous with PPM_drandp.

Returns
random number in range [0.0,1.0)

◆ PPM_ya_frandomf()

float PPM_ya_frandomf ( void )

PRNG function for uniformly distributed single precision floating-point quantities This routine is synonymous with PPM_frandp.

Returns
random number in range [0.0,1.0)

◆ PPM_ya_fsgrandom()

double PPM_ya_fsgrandom ( void )

PRNG function for uniformly distributed double precision floating-point quantities This routine is synonymous with PPM_drand.

Returns
random number in range (-1.0,1.0)

◆ PPM_ya_fsgrandomf()

float PPM_ya_fsgrandomf ( void )

PRNG function for uniformly distributed single precision floating-point quantities This routine is synonymous with PPM_frand.

Returns
random number in range (-1.0,1.0)

Das diesem Bericht zugrundeliegende Vorhaben wurde mit Mitteln des Bundesministeriums für Bildung, und Forschung unter dem Förderkennzeichen 01IH08004E gefördert. Die Verantwortung für den Inhalt dieser Veröffentlichung liegt beim Autor.