From: Chad Perrin Date: 2008-04-11T03:59:54+09:00 Subject: Re: C rand() in Ruby --KFztAG8eRSV9hGtP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 11, 2008 at 03:32:09AM +0900, Joel VanderWerf wrote: > ara.t.howard wrote: > > > >On Apr 10, 2008, at 10:20 AM, Chad Perrin wrote: > >>Is there some simple way to make use of C's rand() from within Ruby? > >>The daughter of someone I know is writing some toy scripts to compare > >>PRNG results for a science fair project . . . > > > >you mean other than just using > > > > rand >=20 > That would call ruby's mersenne twister, AFAIK. Indeed -- which is why I was asking about C's rand() function. --=20 CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] MacUser, Nov. 1990: "There comes a time in the history of any project when it becomes necessary to shoot the engineers and begin production." --KFztAG8eRSV9hGtP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iEYEARECAAYFAkf+Y6gACgkQ9mn/Pj01uKXbRACeMZ5blFDR8tUJxlZhYrpoEho5 tqMAnApRU+L4IxEnWoHfyzfXT3EQg/gY =rqRe -----END PGP SIGNATURE----- --KFztAG8eRSV9hGtP--