what is the command for randomizing in lua?
like is it:
random(272)(kinda like flash?)
thanks in advance=-)
|
|
|
|
Would you like to get all the newest Gaming News from
QJ.NET in your email each day? | ||
This is a discussion on random command in lua? within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; what is the command for randomizing in lua? like is it: random(272)(kinda like flash?) thanks in advance=-)...

what is the command for randomizing in lua?
like is it:
random(272)(kinda like flash?)
thanks in advance=-)
1. Failed....again...
2. http://slicer.gibbocool.com/ stay updated on all my projects
3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been

math.random(min,max)
this generates a random number between min and max.
"Every team needs an idealistic person (whether they are a noob or a pro), my team doesn't have one cus im the idealistic founder."-me
Anime/Manga and Fanfiction is my inspiration!
Creator of:
- PSPSDK makefile creator - Lua Prompt - Animated Sprite Class\Library for Lua - Gmax2PSP -

hmm i put max and it seems to do what i want but maybe thats cause i do not set a minimal and it assumes it as 0 anyways thanks=-)
1. Failed....again...
2. http://slicer.gibbocool.com/ stay updated on all my projects
3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been

i dont know if it sets it to 0 automatically...

hmm that's what it does for me but now that i got that i'm trying to set a veriable so when true then blit it but then i can't move it or error in script arg i'll never get this done dam i hate 2.5=-(
1. Failed....again...
2. http://slicer.gibbocool.com/ stay updated on all my projects
3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been

k got it yea=-)
edit: sorry for double post=-(
1. Failed....again...
2. http://slicer.gibbocool.com/ stay updated on all my projects
3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been
read the new tuts they have got almost everything covered
[COLOR=LightBlue]there is a key to[COLOR=LightBlue] everylock[/COLOR][/COLOR]
[url]http://totalgamerzone.com/[/url]
[IMG]http://i8.photobucket.com/albums/a26/ChopperX/UserBars/mac.jpg[/IMG]
could try this
math.floor(math.random()* max+1)+min