Skip to content

Latest commit

 

History

History
17 lines (17 loc) · 282 Bytes

Math.md

File metadata and controls

17 lines (17 loc) · 282 Bytes

Basic operators

Uses Radians

#include <cmath>
pow(val, 2);
sqrt(val);
sin(val);
cos(val);
tan(val);

Random number

#include <time.h> 
#include <cstdlib>
    srand(time(NULL));  //set the seed for the random number generator
    target = rand() %100 + 1;