This feature is
obsolete[
^], try not to use it.
Just take it as an opportunity to learn some JavaScript coding is then fine:
First, if you want to generate a random number in a range, say min 10 to max 100 both inclusive, the logic should go like this:
1. Find the range, e.g. range = 100 - 10 = 90
2. As Math.random() will generate a random number from 0 (inclusive) to 0.9999..., this
Math.random() * (90 + 1)
will give a random number from 0 (inclusive) to 90.999....
3. use Math.floor() to get rid of the decimal part to get a number from 0 to 90.
4. Add the min 10 to this number, you will get a number from 10 (inclusive) to 100 (inclusive)
5. The resulting code will be:
Math.floor(Math.random() * (maxNumber - minNumber + 1)) + minNumber
Forget the code that you got from nowhere, try this:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Marquee</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
var minNumber = 0;
var maxNumber = 100;
$("#myNumber").attr("scrollamount", Math.floor(Math.random() * (maxNumber - minNumber + 1)) + minNumber);
});
</script>
</head>
<body>
<marquee id="myNumber"> Banana </marquee>
<br>
<marquee> banana </marquee>
</body>
</html>
It should scroll in random speed on each refresh of your browser tab.
To understand this code, you should attend
jQuery Tutorial[
^]