Implement the following Mathematical Calculators in Angular JS

Factorial Generator
Determine the factorial of any integer number

Prime Number Generator
Determine whether an integer is a prime number or not

Random Number Generator"
Implement a random number generator that will accept an integer number as user input and generate random numbers as provided user input.
Then assign each random number to the appropriate "Range". There should be five ranges such that each range will contain the numbers as below.
Range 1: any random number between 1 to 10
Range 2: any random number between 11 to 20
Range 3: any random number between 21 to 30
Range 4: any random number between 31 to 40
Range 5: any random number between 41 to 50