PGARandomUniform(3)

PGARandomUniform3

Returns a uniform random number on the interval [start,end]

Part of PGARandomUniform(5).

Usage

#include "pgapack.h"
double  PGARandomUniform(ctx, start, end)
PGAContext *ctx
double start
double end

Input parameters

ctx

- context variable

start

- starting (double) value of the interval

end

- ending (double) value of the interval

Output parameters

none

Location

random.c

Examples

Example:
Generate a uniform random number on the interval [-0.5, 1.5]
PGAContext *ctx;
double r;
:
r = PGARandomUniform(ctx, -0.5, 1.5);

Releases

8 releases since Debian 1.1 (Buzz); the text changed 1 time.

  1. 1.1
  2. 1.2–3.1

From pgapack 1.0.0.1-3 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.