I have forgot how to make a variable have a random value between two specific numbers (for example between -10 and +80)
I once knew it, but I got somehow confused and...
=D
random = minvalue + rand(maxvalue);
random = -10 + rand(80);
my_angle=rand(90);
angle=-10+my_angle;
Users browsing this forum: No registered users and 1 guest