Nice maths there. Anyway, it's a lot easier than all that.
random() will return a number between 0 and 99.
start_at = my_location locations {
my_location : location "Type <RANDOM<12>> to see the next random number." ;
} on_command {
: match "random _" {
: print {("Random : " + random())}
}
}