Randomising Data

This is a discussion on Randomising Data within the C Programming forums, part of the General Programming Boards category; I have a set of data and was wondering if there is anyway of putting it in a random order? ...

  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    1

    Randomising Data

    I have a set of data and was wondering if there is anyway of putting it in a random order? I know there is a sort function, but I want to do the opositte and unsort the data so it is not in an order.
    Thanks.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Use a shuffle algorithm.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. xor linked list
    By adramalech in forum C Programming
    Replies: 23
    Last Post: 10-14-2008, 11:13 AM
  2. Bitmasking Problem
    By mike_g in forum C++ Programming
    Replies: 13
    Last Post: 11-08-2007, 12:24 AM
  3. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 06:49 PM
  4. Program Crashing
    By Pressure in forum C Programming
    Replies: 3
    Last Post: 04-18-2005, 11:28 PM
  5. Replies: 1
    Last Post: 07-31-2002, 12:35 PM

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