PGASetIntegerInitLU(1)

NAME
PGASetIntegerInitLU - sets each integer-valued gene to a value chosen randomly from the interval given by an upper and lower bound.

INPUT PARAMETERS
ctx - context variable
min - array of lower bounds that define the interval the gene is initialized from
max - array of upper bounds that define the interval the gene is initialized from

OUTPUT PARAMETERS
none

SYNOPSIS
#include "pgapack.h"
void  PGASetIntegerInitLU(ctx, min, max)
PGAContext *ctx
int *min
int *max

LOCATION
integer.c

EXAMPLE
This example will select a value for gene i uniformly randomly from the
interval [0,i]
PGAContext *ctx;
int *low, *high, stringlen, i;
:
stringlen = PGAGetStringLen(ctx);
low  = (int *) malloc(stringlen*sizeof(int));
high = (int *) malloc(stringlen*sizeof(int));
for(i=0;i<stringlen;i++) {
low[i]  = 0;
high[i] = i
}
PGASetIntegerInitLU(ctx, low, high);