Randon numbers

2 Messages Forum Options Options
Permalink
BruceMount
Randon numbers
Reply Threaded More
Print post
Permalink
I recently wrote a genetic algorithm program and had great difficulty
with the pseudo-random number generators supplied with various Eiffel
libraries (they were not very random at all which was causing problems).

So, I wrote a class that produces random numbers from the (far more
random) files created by Random.org.  It is not as fast or convenient
as the pseudo-random number generators (e.g., you need to download
random.org files), but it does produce a perfectly even distribution
(over enough trials).

Would anyone else find this class helpful?  (If so, I'd have to clear
it up a bit before submitting it.)  Do other people do simulations or
genetic algorithm optimization using Eiffel?

--Bruce





------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/eiffel_software/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/eiffel_software/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:eiffel_software-digest@...
    mailto:eiffel_software-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    eiffel_software-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Hubert Cater
Re: Randon numbers
Reply Threaded More
Print post
Permalink
Hi Bruce,

I use random number generation for my games so I would be interested to
take a look.

Hubert


brucemount wrote:

>
>
> I recently wrote a genetic algorithm program and had great difficulty
> with the pseudo-random number generators supplied with various Eiffel
> libraries (they were not very random at all which was causing problems).
>
> So, I wrote a class that produces random numbers from the (far more
> random) files created by Random.org. It is not as fast or convenient
> as the pseudo-random number generators (e.g., you need to download
> random.org files), but it does produce a perfectly even distribution
> (over enough trials).
>
> Would anyone else find this class helpful? (If so, I'd have to clear
> it up a bit before submitting it.) Do other people do simulations or
> genetic algorithm optimization using Eiffel?
>
> --Bruce
>
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.138 / Virus Database: 270.4.11/1554 - Release Date: 7/15/2008 6:03 PM
>

--
Fury Software
http://www.furysoftware.com

Battlefront.com
http://www.battlefront.com

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/eiffel_software/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/eiffel_software/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:eiffel_software-digest@...
    mailto:eiffel_software-fullfeatured@...

<*> To unsubscribe from this group, send an email to:
    eiffel_software-unsubscribe@...

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/