|
Prev: Time Convertion
Next: Flash sprite not updating
From: Ned on 10 Jan 2008 09:25 Hi all, One of my clients is asking me what algorithm is used inside random() function of lingo, I tried to google this but no luck :( Does anyone know ? Is it Von Neumann's, Fibonacci's, Lehmer's, Mersenne twister, other ? TIA -- Ned
From: Chunick on 10 Jan 2008 10:34 this question has come up before... I don't believe the information can be found anywhere and I don't think any of the Director programmers are going to answer, unfortunately... out of curiosity, what kind of project are you working on?... the only time I've seen this question come up is when building gambling games.
From: Ned on 10 Jan 2008 10:42 No it's for a physical simulation, but the client is like many : he likes to ask ennoying questions just to try to let people think he knows something about programming, or about what he is reselling ;o) Thank's for your answer, anyway --- Ned ---
From: Darrel Hoffman on 13 Jan 2008 17:08 > No it's for a physical simulation, but the client is like many : he likes > to ask ennoying questions just to try to let people think he knows > something about programming, or about what he is reselling ;o) I find the best solution for dealing with people who are like that is just to make something up. Or, since he apparently knows the names of several algorithms, just pick one of the names at random (or program Director to pick one at random, hehe.) and tell him that's what it is. Unless he's a mathematical genius with way too much time on his hands, it should be nearly impossible for him to prove you wrong.
From: Ned on 14 Jan 2008 10:51
good idea... Honestly, when I goggled those names, I dropped down on a wikipedia page mentionning them... in the same order ! As soon as I pronounced "wikipedia" in a sentence he suddenly went confused-red ;) thank's for the advice |