I have been trying to achieve this in SQL (Oracle 11g) for a while but could not find a proper way to do it.
My table names has the following rows:
names
If we presume that your all_objects system object has more objects than the max repeat...
SELECT n.name FROM names n LEFT JOIN (Select rownum from all_objects) z on z.rowNum < n.repeat