Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have more than 12000 register in excel , the register sort ascending , i want sort random
thanks.
Posted
Comments
CPallini 9-Dec-10 13:59pm    
What do you intend with 'register', exactly? Moreover, what you intend with 'sort random'? Should 'registers' appear unsorted, with uniform distribution?

1 solution

It's not clear what your question is. I am assuming you are not specifying 12,000 variables to be held in registers. Are you only asking how to do a random sort on a 12,000 variable vector?

It's equivalent to generating 12,000 order statistics. There is an algorithm in James Gentle's book that you can use for sequential generation of order statistics.

Below is a link to the errata of the book along with the name of the book.

http://mason.gmu.edu/~jgentle/books/rngbk/rng2errata.htm[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900