Is there any function better than rand()

This is a discussion on Is there any function better than rand() within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by SlyMaelstrom Not to be the one to toot another member's horn, but this is a good read: ...

  1. #16
    Dae
    Dae is offline
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    Quote Originally Posted by SlyMaelstrom
    Not to be the one to toot another member's horn, but this is a good read:

    http://eternallyconfuzzled.com/articles/rand.html

    and here is their rand library:

    http://eternallyconfuzzled.com/libs/jsw_rand.html
    This is offtopic, but I always wondered how people end up reviving topics 6 months old? I mean its not like its on page 1/2..
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  2. #17
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,066
    That's a good question, I hadn't even noticed. It was at the top of the forum with a new post when I posted. How it got there, I don't know. My guess is someone made a post then deleted it. If that's not the case then for some more strange reason it just simply went to the top of the forum with the new posts. Perhaps a side effect of a server reset or something.
    Sent from my iPadŽ

  3. #18
    Registered User
    Join Date
    Apr 2003
    Posts
    2,662
    This is offtopic, but I always wondered how people end up reviving topics 6 months old?
    I hate that. SlyMaelstrom-- for not checking the date.

  4. #19
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,066
    Hey come on, cut me some slack here. It was at the top of my list and it was probably at the top of yours as well. So what's the difference if I posted in it or not? It was already bumped to the top by the forum.
    Sent from my iPadŽ

  5. #20
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    And what's the big deal anways? It's no longer about helping the OP but it usually becomes a discussion for the other memebers. Sly you reminded me about those links, nice read =)

    I wonder how long Prelude's rand period is. It's based on something with 2^19937-1 so it must be pretty good...

  6. #21
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    This is pretty comical. I admit, I didn't notice the original thread date. And apparently Salem didn't notice either.

  7. #22
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,415
    I confess I didnt know it either. Must be the randomness....

    I wonder how long Prelude's rand period is. It's based on something with 2^19937-1 so it must be pretty good...
    She's implementing Mersenne Twister, so the period is indeed 2^19937-1
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 02:07 AM
  2. doubt in c parser coding
    By akshara.sinha in forum C Programming
    Replies: 4
    Last Post: 12-23-2007, 12:49 PM
  3. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 01:53 AM
  4. Problem with Visual C++ Object-Oriented Programming Book.
    By GameGenie in forum C++ Programming
    Replies: 9
    Last Post: 08-29-2005, 11:21 PM
  5. Replies: 5
    Last Post: 02-08-2003, 06:42 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21