I have data (6 millions of numbers) and I want to divide my data by intervals (range of number). Each interval should have almost the same amount of data.
I know the way for finding intervals with ranges equals between themselves(as here). But I want that each interval defined have the same amount of data
What's the process or formula for finding that?
UPDATE
I need to do a manual calculus. I haven't software as Matlab or SPSS. The 6 millions of number is stored in a table of database. I going to use PL/SQL.

Sort your numbers (sorting 6 million numbers in something like matlab should take a fraction of a second). Then take the first million, the second million, etc.