I hope so...
Updated again to correct a bug in mwc:randomseed. I was not reseting a variable parameter.
Search found 67 matches
- Thu Jul 28, 2011 10:27 pm
- Forum: Libraries and Tools
- Topic: RandomLua Library
- Replies: 31
- Views: 31553
- Thu Jul 28, 2011 10:25 pm
- Forum: Games and Creations
- Topic: Eternity
- Replies: 42
- Views: 20298
Re: Eternity
Finally, I included RandomLib on Eternity (and found a bug on mwc:randomseed). If you don't start on Ceer system, I have a real problem. One of the things I like the most is the ability to create 2 random generators. I use one to get randomseed defined numbers. When I need "really random" ...
- Thu Jul 28, 2011 1:49 pm
- Forum: Games and Creations
- Topic: Eternity
- Replies: 42
- Views: 20298
Re: Eternity
Not sure if this has been mentioned (lots of posts in here), but your framebuffers are not Po2. Well, at least one of them, won't run on most older hardware. I just checked: all images I used are Po2. Since I don't have that problem I thought that it should be enough. If scaling images create the p...
- Thu Jul 28, 2011 1:27 am
- Forum: Libraries and Tools
- Topic: RandomLua Library
- Replies: 31
- Views: 31553
Re: RandomLua Library
To get 100000 pseudo-randoms it takes 0,4 s with LCG and 22 s with Twister. You should be able to make the mersenne twister at least 6 times faster by only using arithmetic and logic operations for the bitwise operations (Has its few restrictions, but works for unsigned 32-bit values). The modulo o...
- Wed Jul 27, 2011 2:22 pm
- Forum: Libraries and Tools
- Topic: RandomLua Library
- Replies: 31
- Views: 31553
Re: RandomLua Library
v 0.2 with Multiply with carry
- Wed Jul 27, 2011 9:56 am
- Forum: Libraries and Tools
- Topic: RandomLua Library
- Replies: 31
- Views: 31553
Re: RandomLua Library
Forgive my pedancy, but shouldn't this be called "PseudoRandomLua"? For the same reason we call math.random when we should call math.pseudorandom? :) Mmm, randomness. I approve. But why is the Mersenne Twister algorithm slow? I've read that it's rather fast, all considered. Also, do you t...
- Wed Jul 27, 2011 3:47 am
- Forum: Games and Creations
- Topic: Eternity
- Replies: 42
- Views: 20298
Re: Eternity
What happens to you is caused by this random randomness we're talking about.miloguy wrote:D: It sounds so coolCode: Select all
ship.lua:91: attempt to index field 'dock' (a nil value)
I think I have an answer. Look at http://love2d.org/forums/viewtopic.php?f=5&t=3424.
Now, good night (is almost morning here).
- Wed Jul 27, 2011 3:43 am
- Forum: Libraries and Tools
- Topic: RandomLua Library
- Replies: 31
- Views: 31553
RandomLua Library
After some experiments and talk at the Eternity topic, I became aware of the problems with random generators. Since I don't intend to compile C code for every platform, I decide to create a Pure Lua Random Generator (probably another one...). So after 6 long hours, a new library is born. It's too la...
- Tue Jul 26, 2011 4:43 pm
- Forum: Games and Creations
- Topic: Eternity
- Replies: 42
- Views: 20298
Re: Eternity
Most of the time I use pre-defined random numbers by choosing the same seed. Math.randomseed(512) on Mac X give me different results, so I'm working on a pure lua random generator.
- Tue Jul 26, 2011 11:15 am
- Forum: Games and Creations
- Topic: Eternity
- Replies: 42
- Views: 20298
Re: Eternity
Today I played Eternity on a Mac. :awesome: Everything works well, except: Star systems are different On Galaxy chart, the stars are all lined (a bunch of diagonal lines). Strange... I guess that the problem is with the random numbers generator being different. As anyone had such an issue? Is there ...