Find the right order

Report a typo

Rearrange the lines to create a valid JavaScript function that generates a random integer. Make indentations where expected.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                let randomInteger = Math.floor(randomNumber);
              
                let randomNumber = randomValue * max
              
                return randomInteger;
              
                function getRandomInteger(max) {
              
                }
              
                let randomValue = Math.random();
              
___

Create a free account to access the full topic