Scippy

SCIP

Solving Constraint Integer Programs

Detailed Description

Functions

int SCIPgetRandomInt (int minrandval, int maxrandval, unsigned int *seedp)
 
SCIP_Real SCIPgetRandomReal (SCIP_Real minrandval, SCIP_Real maxrandval, unsigned int *seedp)
 

Function Documentation

int SCIPgetRandomInt ( int  minrandval,
int  maxrandval,
unsigned int *  seedp 
)

returns a random integer between minrandval and maxrandval

Parameters
minrandvalminimal value to return
maxrandvalmaximal value to return
seedppointer to seed value
SCIP_Real SCIPgetRandomReal ( SCIP_Real  minrandval,
SCIP_Real  maxrandval,
unsigned int *  seedp 
)

returns a random real between minrandval and maxrandval

Parameters
minrandvalminimal value to return
maxrandvalmaximal value to return
seedppointer to seed value