Home »
MCQs »
SASS MCQs
Which Sass function is used to get the random number between 1 and the given number?
34. Which Sass function is used to get the random number between 1 and the given number?
- random(number)
- random(0,number)
- randomize(0,number)
- random-number(number)
Answer: A) random(number)
Explanation:
The random(number) function is used to get the random number between 1 and the given number.
Example:
random(108)
Result: 54