Jetson Inference
DNN Vision Library
rand.h File Reference
#include <stdlib.h>
#include <time.h>

Go to the source code of this file.

Functions

float randf (float range_min=0.0f, float range_max=1.0f)
 Generate a floating-point random number within the specified range. More...
 
int rand (int range_min, int range_max)
 Generate a random integer within the specified range. More...
 
void srand_time ()
 Seed the random number generator based on the system time. More...