generate a random linear ordering problem instance
Definition in file genRandomLOPInstance.c.
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
Go to the source code of this file.
Macros | |
#define | SCIP_RAND_MAX RAND_MAX |
Functions | |
static int | getRand (unsigned int *seedp) |
static int | getRandomInt (int minrandval, int maxrandval, unsigned int *seedp) |
int | main (int argc, char **argv) |
#define SCIP_RAND_MAX RAND_MAX |
Definition at line 51 of file genRandomLOPInstance.c.
Referenced by getRandomInt().
|
static |
returns a random number between 0 and SCIP_RAND_MAX
seedp | pointer to seed value |
Definition at line 55 of file genRandomLOPInstance.c.
Referenced by getRandomInt().
|
static |
returns a random integer between minrandval and maxrandval
minrandval | minimal value to return |
maxrandval | maximal value to return |
seedp | pointer to seed value |
Definition at line 66 of file genRandomLOPInstance.c.
References getRand(), and SCIP_RAND_MAX.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 75 of file genRandomLOPInstance.c.
References getRandomInt(), and NULL.