Simple randomizer

Report a typo

Change the getRandom function so that it returns a random integer from 0 (inclusive) to 5 (exclusive).

Tip: Focus only on the modification of the function such that it returns a random value as per the above description. This returned value is then processed internally and produces the output as given in the sample output.

Sample Input 1:

Sample Output 1:

[ 0, 1, 2, 3, 4 ]
Write a program in JavaScript
function getRandom() {
// Write your code here
}
___

Create a free account to access the full topic