30.06.2012, 03:36
Your string theory took 1ms to execute, so I wouldn't stress too much about efficiency. I'm not a professional or anything, but it's worth trying.
pawn Код:
main() {
new
string[144],
i=0,
time = GetTickCount();
while(i != sizeof(string)) {
switch(random(2)) {
case 0: {
strcat(string, "0");
}
case 1: {
strcat(string, "1");
}
}
i++;
}
print(string);
printf("Took %dms to execute", GetTickCount()-time);
}