COMP2113
COMP2113_ENGG1340 Programming technologies and Computer programming II [Section 2BC] [2023]
Loading...
Searching...
No Matches
random.cpp
Go to the documentation of this file.
1
#include <cstdlib>
2
#include "
random.h
"
3
using namespace
std;
4
5
void
randomPoint
(
double
& x,
double
& y) {
6
x = (double) rand() / RAND_MAX;
7
y = (double) rand() / RAND_MAX;
8
}
randomPoint
void randomPoint(double &x, double &y)
Definition
random.cpp:5
random.h
Assignment2
P3
random.cpp
Generated on Sun Sep 29 2024 16:39:53 for COMP2113 by
1.12.0