Started by
Ergosphere
on
Topic category: User side tutorials
You can use the code below the generate a random number. The top function is for when your minimum is 1. The bottom is for any other scenario.
For each function interchange 15 for your maximum number and change 5 for your minmum in the bottom one.
In code form the formula looks like this:
(Math.random() * (maximum - minimum + 1)) + minimum
Sorry but, Where should i put that in the structure of the code-blocks? It doesn't matter or it does?
Sorry but, Where should i put that in the structure of the code-blocks? It doesn't matter or it does?