Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: Redirect to...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 19 of 20 Topic 26170 of 27678
Post > Topic >>

Re: Redirect to STDOUT Problem

by lawrence.jones@[EMAIL PROTECTED] May 14, 2008 at 07:00 PM

Richard Tobin <richard@[EMAIL PROTECTED]
> wrote:
> In article <g0cuqm$ael$1@[EMAIL PROTECTED]
>,
> Walter Roberson <roberson@[EMAIL PROTECTED]
> wrote:
> 
>>The low bit of rand() is often not very random at all -- often
alternating
>>between 0 and 1 each time.
> 
> This used to be true, 20-something years ago.  Surely modern
> implementations don't have the same problem?

I only know of *one* implementation that had that problem, and that was
more like 30 years ago.  (Someone at UCB "enhanced" a perfectly good
16-bit rand() to return 32 bit values by simply returning the entire
internal state rather than just the high-order 16 bits.)

-- Larry Jones

I wonder what's on TV now. -- Calvin
 




 20 Posts in Topic:
Redirect to STDOUT Problem
Jordan Glassman <jorda  2008-05-12 17:50:13 
Re: Redirect to STDOUT Problem
Ben Bacarisse <ben.use  2008-05-13 02:14:47 
Re: Redirect to STDOUT Problem
Jordan Glassman <jorda  2008-05-12 18:21:45 
Re: Redirect to STDOUT Problem
Peter Nilsson <airia@[  2008-05-12 19:33:04 
Re: Redirect to STDOUT Problem
Jordan Glassman <jorda  2008-05-12 19:46:46 
Re: Redirect to STDOUT Problem
Richard Heathfield <rj  2008-05-13 04:03:06 
Re: Redirect to STDOUT Problem
Ben Bacarisse <ben.use  2008-05-13 05:01:07 
Re: Redirect to STDOUT Problem
Ben Bacarisse <ben.use  2008-05-13 05:05:08 
Re: Redirect to STDOUT Problem
Peter Nilsson <airia@[  2008-05-12 21:23:55 
Re: Redirect to STDOUT Problem
Jordan Glassman <jorda  2008-05-12 22:05:13 
Re: Redirect to STDOUT Problem - TPA
"Default User"   2008-05-13 07:05:21 
Re: Redirect to STDOUT Problem
Jordan Glassman <jorda  2008-05-12 22:54:17 
Re: Redirect to STDOUT Problem - TPA
Jordan Glassman <jorda  2008-05-13 00:53:56 
Re: Redirect to STDOUT Problem - TPA
"Default User"   2008-05-13 16:59:03 
Re: Redirect to STDOUT Problem
viza <tom.viza@[EMAIL   2008-05-13 13:40:31 
Re: Redirect to STDOUT Problem
roberson@[EMAIL PROTECTED  2008-05-13 20:48:22 
Re: Redirect to STDOUT Problem
richard@[EMAIL PROTECTED]  2008-05-13 21:52:05 
Re: Redirect to STDOUT Problem
roberson@[EMAIL PROTECTED  2008-05-13 22:02:48 
Re: Redirect to STDOUT Problem
lawrence.jones@[EMAIL PRO  2008-05-14 19:00:53 
Re: Redirect to STDOUT Problem
Szabolcs Borsanyi <bor  2008-05-14 12:49:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 18:38:39 CDT 2008.