using StringTools;
class Main {
static function main() {
for (_ in 0...10) {
var a = Std.string(Math.floor(Math.random() * 500)).lpad(" ", 3);
var b = Std.string(Math.floor(Math.random() * 500)).lpad(" ", 3);
trace('$a -- $b');
}
}
}
Offtopic: Math.floor(Math.random() * 500) is the same as Std.random(500) and '$value' (or "" + value) is usually faster than Std.string(value) for numeric types