PGARandomInterval(3)

PGARandomInterval3

Returns a uniform random number on the specified interval

Part of PGARandomInterval(5).

Usage

#include "pgapack.h"
int  PGARandomInterval(ctx, start, end)
PGAContext *ctx
int start
int end

Input parameters

ctx

- context variable

start

- starting (integer) value of the interval

end

- ending (integer) value of the interval

Output parameters

none

Location

random.c

Examples

Example:
Generate a value uniformly random from the interval [0,99]
PGAContext *ctx;
:
PGARandomInterval(ctx, 0, 99);

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.