Generating a sequence of numbers in a random order

This is a discussion on Generating a sequence of numbers in a random order within the C Programming forums, part of the General Programming Boards category; I now that my previous post is pretty wrong, but point is that this randomizing of bits is combined with ...

  1. #16
    Registered User
    Join Date
    Jul 2008
    Posts
    133
    I now that my previous post is pretty wrong, but point is that this randomizing of bits is combined with random value.

    EDIT: I know where i read about it! It was either in man pages or linux howtos, where they talked about using high word and low word in 'ancient' times, and that with "new" random() they don't have to anymore. It was few years ago.

    EDIT2: from "man 3 srand":
    'However, on older rand() implementations, and on current implementations on different systems, the lower-order bits are much less random than the higher-order bits'.

    So, if he's on windows, he could fall into "much less (random)" category...
    Last edited by rasta_freak; 08-12-2008 at 02:12 PM.

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

Similar Threads

  1. Generating Random Numbers
    By Flakster in forum C++ Programming
    Replies: 14
    Last Post: 08-22-2005, 12:50 PM
  2. Generate random numbers in Lucky7 project using C#
    By Grayson_Peddie in forum C# Programming
    Replies: 1
    Last Post: 04-11-2003, 11:03 PM
  3. programming with random numbers
    By xstudent in forum C Programming
    Replies: 13
    Last Post: 05-21-2002, 01:36 AM
  4. Generating Random Numbers
    By knight543 in forum C++ Programming
    Replies: 3
    Last Post: 01-11-2002, 05:55 PM
  5. arranging randomly generated numbers in ascending order
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 11-05-2001, 06:14 PM

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