Just for giggles, I whipped up a build-in random() function for ASH. It takes an integer as argument (the range, which must be 2 or greater) and returns an integer from 0 to range-1.
Code:
int x = 0;
while ( x != 11 )
{
x = random( 17 );
print( x );
}
[quote author=Kunundrum link=topic=172.msg929#msg929 date=1148975968]
No closing '"' found at line 8 in file C:\Documents and Settings\Lethal\Desktop\stargaze.ash. Debug log printed.
[/quote]
Not my script, but here is the same script with the typo fixed.