get random number between range typescript code example
Example: angular random number between 1 and 10
function randomNumber(min, max) {
return Math.random() * (max - min) + min;
}
function randomNumber(min, max) {
return Math.random() * (max - min) + min;
}