Hey,
I found this on rjukan's poject site:
-------------------------------------------------------------------------------------
Command: randomfloat
Syntax: randomfloat ( Float max )
Example: randomfloat 14.9
Description: Returns a random number between 0 and 'max', inclusive of 0 and exclusive of 'max' (i.e. 'max' will never be returned).
-------------------------------------------------------------------------------------
Command: randomint
Syntax: randomint ( Integer max )
Example: randomint 10
Description: Returns a random number between 0 and 'max', inclusive of 0 and exclusive of 'max' (i.e. 'max' will never be returned).
-------------------------------------------------------------------------------------
This is almost what i want. The only thing that i want is that i can choose between which numbers there will be chosen.
So, basicly i want a number be chosen between 10 and 20. (example numbers)
thanks,
-Runt
variable question
Moderator: Moderators
-
Rookie One.pl
- Site Admin
- Posts: 2752
- Joined: Fri Jan 31, 2003 7:49 pm
- Location: Nowa Wies Tworoska, Poland
- Contact:
-
Rookie One.pl
- Site Admin
- Posts: 2752
- Joined: Fri Jan 31, 2003 7:49 pm
- Location: Nowa Wies Tworoska, Poland
- Contact:
Hehe, no problem. 
Speed is not a property, I believe. I think it's a method, which means it cannot be assigned to. You can do it like this:
Speed is not a property, I believe. I think it's a method, which means it cannot be assigned to. You can do it like this:
Code: Select all
local.object speed (10 + randomint(10))
