|
Author |
Topic: float vs. integer (Read 261 times) |
|
tom willis Guest
|
float vs. integer
« on: May 17th, 2004, 4:12pm » |
|
hi, i need a function that gives back a random integer number between lets say 20 and 200. but the "random" function only gives back float values. what?s the easiest way to make integer out of float?
|
|
|
|
c Guest
|
Re: float vs. integer
« Reply #2 on: May 17th, 2004, 8:29pm » |
|
hi do this: int yourVariable = int(random(180)+20); c
|
|
|
|
|