GoConqr has a new look! Let us know what you think.

Module 10 of 10 · Media

Create a random number within a given range

Kostas Diakogiannis

Create a random number within a given range

M-6 Create a random Number within a range

Create a function that accepts a low number and a high number and creates a random number between these two thresholds.

ex. createRandom(1, 10) creates an integer between 1 and 10.

Make this re-usable with many combinations to be sure that it works.

At the end create a number between 50 and 55 for example. 

The final random number should be an integer.

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?