|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||
|
|
|
|
|
||||||||||||||||||
|
|
|
|
|||||||||||||||||||
|
|
|
|
|
|
|
|
|
||||||||||||||
|
|
|
|
|
|
|
||||||||||||||||
![]() |
|
|
|
||||||||||||||||||
![]() |
![]() |
|
|||||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||
![]() |
![]() |
|
|||||||||||||||||||
|
|
|
||||||||||||||||||||
|
||||
|
I know that we both live in the U.S cause you stated so earlier. And I also know that the time between certain states isn't extra far... Like California is approx. 3 hours behind Texas.... When Algebra 2 and pre calc begin to actually help....Yay, glad I'm good at that, now I can do Lua stuff with it...I think.... :-? [addsig]
__________________
If you have nothing with you, the best entertainment system out there is your imagination. If I\'m offline, leave a message after the snot bubble. email me at [Only Registered Users Can See Links. Click Here To Register] if you have any questions. I\'ll try to answer them.
|
|
||||
|
oh! just making sure.[addsig]
__________________
Email: [Only Registered Users Can See Links. Click Here To Register] PSP Firmware History : 2.71 < 3.02 < 3.03 < 1.5 < 3.03 OE-C < 3.40 OE-A ......I forget the rest but I have 5.00 M33-6 now. Games: Enjoy RPGs , Adventure , and racing games. Interests: PSP , Tennis , Programing games , Business , Studying Job of Interest : Business Man Vacation of choice : Hawaii , or Trump Tower in Dubai Islands or any other island/beach place |
| Sponsored Links |
|
|||
|
Awesome job Skull. this is really nice for beginner programmers and mathematicians. now lets see some of you make some homebrew.
and for the record we learn BEMDAS in QC too. [addsig]
__________________
I am who I am because of who everyone around me is. Moderator @ [Only Registered Users Can See Links. Click Here To Register] [Only Registered Users Can See Links. Click Here To Register] |
|
||||
|
I wish I could start this, but I'm waiting for a laptop.[addsig]
__________________
COD WAW highest zombie round: 18 An improvement but not good enough. [Only Registered Users Can See Links. Click Here To Register] [Only Registered Users Can See Links. Click Here To Register] |
| Sponsored Links |
|
||||
|
Probably I should study math here for now on.[addsig]
__________________
COD WAW highest zombie round: 18 An improvement but not good enough. [Only Registered Users Can See Links. Click Here To Register] [Only Registered Users Can See Links. Click Here To Register] |
| Sponsored Links |
|
|||
|
Quote:
You will likely use a lot of the skills and material you learn in math classes when you are programming, especially if you want to create games. When creating a game you will likely have to calculate coordinates and directions for your characters to take, this can be done by studying math. Learning how to use math will help you in the long run, so if you are learning how to program I would suggest that you also study math.[addsig] |
|
|||
|
When you generate a random number, the actual numbers generated are psuedo-random numbers, meaning the same numbers will come out of the function, based on the seed (which is default 0). By using Math.randomseed(), you change the seed to get a different set of random numbers. For true random numbers, you should use the code:
[code=lua]Math.randomseed(os.time())[/code][addsig]
__________________
Homebrew Dev |
|
|||
|
Quote:
correct me if I am wrong please, but: If I had to guess I would say that because the time stamp in the OS (which I am assuming os.Time() returns...) is incremental, rather than 0, you will create true random numbers, with a constantly changing seed?? but this leaves me thinking, since the time increments are not random, then there is an ordering to the seed being passed into the function, so wouldn't this then put you in the same situation as passing 0 as the seed every time?[addsig]
__________________
I am who I am because of who everyone around me is. Moderator @ [Only Registered Users Can See Links. Click Here To Register] [Only Registered Users Can See Links. Click Here To Register] |
| Sponsored Links |
![]() |
| Tags |
| lua, mathematics |
| Thread Tools | |
| Display Modes | |
|
|