Random Numbers + Checked answers (MATH)

Hello i’am new at ionic2 and trying to generate random numbers to make math operations like (2+2), also i need to check the answers that the user validate there, how can i easily do that?


1- generate random numbers
2- automatically check the answers, right or wrong

i’m sorry but this has nothing to do with Ionic. That’s pure programmation skills. I would recommend you start by reading some programming basics instead of trying to get help on a framework forum.