There are some functions available interactively that don't have JSL equivalents. Most of these are things that only make sense interactively. In this case, it's assumed that as a JSL author you can create the data you want as you want it.
For the pattern you're looking for you should examine the Row(), Count(), and Sequence() functions.
New Table( "Sequences",
Add Rows( 20 ),
New Column( "Row",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula( Row() )
),
New Column( "Count",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula( Count( 10, 30, 21, 1 ) )
),
New Column( "Sequence",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula( Sequence( 100, 130, 0.5, 2 ) )
)
);
-Jeff