(2020-11-25, 11:20 PM)Freaksken Wrote:PHP Code:printf("Random capital letter: %s",? 'A' random('Z'-'A' 1));
printf("Random digit: %d", random(10));
It doesn't work when I use everything in the same string. need to generate vehicle plate.
Code:
format(string, sizeof(string), "%s %d %s %s",? 'A' random('Z'-'A' 1), random(10), 'A' random('Z'-'A' 1), 'A' random('Z'-'A' 1));