What is the range of random numbers here, Pramod? Are we talking about int's or long's or double's or what data type, exactly? When you said "numbers" in the original post, I was thinking "integers", but integers can be covered by the distribution counting algorithm, on modern compiler's.
So what's the problem with using it? It's faster than anything else, and certainly far faster than quicksort, which I believe is O(n log(n)). adak