-
Random numbers
OK, so i've got that
Code:
enemyHP = random(60);
Makes the enemyHP a number from 0 to 60 in integers, but how do i make it so it goes from 40 to 60 instead, i need this for a game because an enemy starting with 1 HP is way too easy, but i want randomness. Please help, even if you don't know, just tell me what you THINK might do it.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|