Create an HTML table.

 The table body should have at least three rows of three columns.
 Each of these three columns should be labelled "X", "Y", and "Z". 
 An extra column should be added at either the extreme left or the extreme right of the table that has no heading, but is filled with sequential row numbers. 
 The rows of the "X", "Y", and "Z" columns should be filled with random or sequential integers having 4 digits or less. 
 The numbers should be aligned in the same fashion for all columns.


decl ursa.util.random random
 
out "<table>" endl console
 
# generate header
out "<tr><th></th><th>X</th><th>Y</th><th>Z</th></tr>" endl console
 
# generate five rows
decl int i
for (set i 1) (< i 6) (inc i)
        out "<tr><td style=\"font-weight: bold;\">" i "</td>" console
        out "<td>" (int (+ 1000 (random.getint 8999))) "</td>" console
        out "<td>" (int (+ 1000 (random.getint 8999))) "</td>" console
        out "<td>" (int (+ 1000 (random.getint 8999))) "</td>" console
        out "</tr>" endl console
end for
 
out "</table>" endl console