COMP2113
COMP2113_ENGG1340 Programming technologies and Computer programming II [Section 2BC] [2023]
Loading...
Searching...
No Matches
random.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void randomPoint (double &x, double &y)
 

Function Documentation

◆ randomPoint()

void randomPoint ( double & x,
double & y )

Definition at line 5 of file random.cpp.

5 {
6 x = (double) rand() / RAND_MAX;
7 y = (double) rand() / RAND_MAX;
8}

Referenced by main().

Here is the caller graph for this function: