The Daily Click ::. Forums ::. Klik Coding Help ::. Random number generators
 

Post Reply  Post Oekaki 
 

Posted By Message

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
8th June, 2008 at 23:09:03 -

What's a good extension to generate a random number in MMF? My games use a lot of random numbers and I don't like how the RNG is unbalancing them :/ The marsienne twister (sp?) looks like it's a lot more random than MMF's built in generator, but the problem is that it seems to run a little like a weighted dice.. somewhat leaning towards certain numbers.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
8th June, 2008 at 23:12:58 -

I thought MMF let you seed its random generator at a whim :X I used the built in random(x) for gridquest and I noticed a LOT of funky business going on with some level generation, like awfully repeated dungeon layouts, but I thought it made it look cooler.

Until then, http://www.clickteam.info/extensions/extview.php?id=216
that one is fairly decent iirc, and http://www.clickteam.info/extensions/extview.php?id=51
that one looks fair

 
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
9th June, 2008 at 03:35:21 -

I forgot about those two! Damn, I have waaaay too many extensions. Have to start looking at and removing the ones I don't use.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
15th June, 2008 at 21:01:45 -

I've experimented with those two but they don't seem to have the detail of the MT Random object. So, I'll have to find another extension, or just another way to make the MT Random object less biased :/

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
15th June, 2008 at 21:20:53 -

make your own extension that uses c++'s rand()% and randomizetimer(). its seemed fairly unbiased to me so far.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click