It's to predict the behavior.
You could assign values to variables and break it up into if else-if else statements.
<span>Pseudocode:</span>
if a < b and b < c:
print("increasing")
else if a > b and b > c:
print("decreasing")
else:
print("neither")
Hope this helps.
Answer:
The randomNumber function only uses whole numbers between 0 and 1 because those are the unspecified minimum and maximums to get random numbers. If you want a larger range, <em>just specify the minimum and maximum.</em>
Explanation:
<em>Example code on how to specify a larger range, replace max and min with your maximum and minimum integers.</em>
function getRandomArbitrary(min, max) {
return Math.random() * (max - min) + min;
}