Another good random
3 posts • Page 1 of 1
Another good random
- Code: Select all
scene.my.rnd := {(system.time+ sin(sim.tick))%1}
range 0..1, pretty fast and smooth. different values on every run.
Last edited by Kilinich on Mon Jan 10, 2011 11:18 am, edited 1 time in total.
Dream of Algodoo as game development engine...
-

Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Another good random
Rideg wrote:app.time; Is that like system.time?
yes, sorry, my misprint
Dream of Algodoo as game development engine...
-

Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
3 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest




