I find the easiest way for a short list is something like:
select t.*
from (select row_number() over (order by (select NULL)) as num
from Information_Schema.columns
) t
where num <= 100
The columns table usually has at least 100 rows. Other tables can also be used.
For large numbers, something like the following:
with digits as (
select 0 as dig union all select 1 union all select 2 union all select 3 union all select 4 union all
select 5 union all select 6 union all select 7 union all select 8 union all select 9
),
numbers as
select d1.dig*10+d2.dig
from digits d1 cross join
digits d2
)
. . .