🎲
How to Math Class:
[Link]
How to Math Class: [Link] 1
How to Math Class: [Link] 2
//the general formula for math random goes
//int x = (int)([Link]()*differenceInSet(+1 if inclusive))+StartofSet
//to produce one random integer between A and B(inclusive)
int randNum = (int) ([Link]() * (B-A+1)) + A;
//to produce a random integer from 0(including) to 10(excluding)
//since [Link] produces numbers between 0(including) and 1(exluding) th
int randNum2 = (int) [Link]() * 10;
//to produce a random integer from 0(incl) to 10(incl)
int randNum3 = (int) ([Link]()*10+1);
How to Math Class: [Link] 3