Let me show you how I'm going to solve this particular challenge with a few lines of code.
So it says that the function should take two numbers and then give me the random number between the
two.
Right?
So let's get going.
So my solution is here.
As that.
So first of all, use the function and then, let's say get random.
Number and the function would take my minimum number and then my maximum number, remember, and that
they get random numbers between two numbers.
Then here we go.
So here I would just return from this function quickly and then let's use the built in method.
Function map dot random.
And then as that.
And then I'm going to multiply it by my maximum minus minimum and then plus one.
And then I'm going to also add my minimum because for this one I want I want to add the minimum and
the mean and the maximum to be inclusive.
Well, that's how I want it.
Okay.
That's how I want it.
So let me consider that log the round and then it's equal to get random number.
I want to get random numbers between, let's say, 30 and 40 like that.
So if I cancel the log, my random round, I see.
If I save it, I get random numbers on the fly.
Random numbers on the fly.
So it says that we should what, return the nearest whole number so I can floor this one.
I can fly it to here map, dot floor.
Then I say method.
Then I will catch this one and then put it inside my final result as we did before.
So with this one I'm going to get floor as that would get it.