The program will randomly generate an ordinal between 0 and max ordinal.
The max ordinal should be a sequence of non-negative integers seperated by commas.
Sequence an,an-1,...,a0 represents ordinal
ωnan+ωn-1an-1+...+ωa1+a0.
The ratio should be a real number between 0 and 1. Higher ratio means a higher chance to get a large ordinal.