Discuss Game Maker or not sure where to put so it or they or both goes in this thread or both in this thread.
Here is how to do random_range for Game Maker 7.0 and below
[pre]
var variable,minimum_amount_of_variable,maximum_amount_of_variable;
minimum_amount_of_variable = argument0;
maximum_amount_of_variable = argument1;
variable = argument2;
if (argument2 < argument0)
{
argument2 = argument0;
}
if (argument2 > argument1)
{
argument2 = argument1;
}
[/pre]
Example of random_range: (18,181,hp);
Here is how to do random_range for Game Maker 7.0 and below
[pre]
var variable,minimum_amount_of_variable,maximum_amount_of_variable;
minimum_amount_of_variable = argument0;
maximum_amount_of_variable = argument1;
variable = argument2;
if (argument2 < argument0)
{
argument2 = argument0;
}
if (argument2 > argument1)
{
argument2 = argument1;
}
[/pre]
Example of random_range: (18,181,hp);