Random string
#1

How do i randomise a string from these options for example: {hey,hello,sup,waddup,hi}
and then format the randomised string into another string?
Reply
#2

Ex:
pawn Код:
new RandomString[5][8] = {
{"hey"},
{"hello"},
{"sup"},
{"waddup"},
{"hi"}
};

//format
new VBString[24];
format(VBString, sizeof VBString, "Test : %s", RandomString[random(sizeof(RandomString))]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)