Done like this. Random . Range (1,10); Random A class for getting random data. Range Gets a random float number between the numbers you set. Simple Right? Read more from the original content here
Learn to create games, a blog at a time.