Re: Hunt for rand and srand implementations ;)

From: Bob Harris (plasticnitlion_at_wrappermindspring.com)
Date: 10/29/04


Date: Thu, 28 Oct 2004 23:20:01 GMT

Skybuck Flying wrote:
> This search for random implementations is starting to get interesting... so
> time for a bit more professional approach ;)
>
> If you know any implementations for srand() and rand() for a platform you
> could add it to this (newsgroup) thread in this style:

Howdy, Skybuck,

What are you trying to accomplish? For example, if you want to generate a
platform independent stream of PRNs, you only need one implementation, you
call it something other than srand() and rand(), and just call it.

Bob H



Relevant Pages

  • Re: Random Integers from 0 to 999
    ... >> If an implementation's rand() function never returns 0, ... It's not necessary to program around poor implementations of rand, ... and make a simple, fast, high-quality random number generator. ...
    (comp.lang.c)
  • Re: Thinking of programming a rigged deck - anyone want to help?
    ... It certainly was a problem way back when and may still be in other implementations. ... John Fish ... I'm actually not sure what Linux uses today. ... It's basically a problem with linear congruential PRNGs, which are what is commonly used to implement rand(). ...
    (rec.gambling.poker)
  • Re: Random Integers from 0 to 999
    ... > It's not necessary to program around poor implementations of rand(), ... > or even implementations that look like they might be poor. ... C implementations of Complementary-Multiply-With-Carry PRNGs, ...
    (comp.lang.c)
  • Re: Random Integers from 0 to 999
    ... >> think you might be, with rand(), better generators are not hard to ... implementations of rand, ... I should say that the GraphBase RNG is not my "favorite" RNG. ...
    (comp.lang.c)
  • Re: Card dealing and random repetition
    ... Schraalhans Keukenmeester wrote: ... > Most rand() implementations, ... Prev by Date: ...
    (comp.programming)