Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Crédits: @SuYaNw
- // Function: Crie uma sequencia de numeros randomicos.
- stock GenerateRandomListN(size)
- {
- #if !defined MAX_SIZE
- #define MAX_SIZE (100)
- #endif
- if(size > (MAX_SIZE)){}
- static str[MAX_SIZE];
- str[0] = EOS;
- for(new i; i <= a; ++i)
- {
- if(i == size) break;
- static s[5];
- format(s, MAX_SIZE, "%d", random(MAX_SIZE));
- strcat(str, s);
- }
- return str;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement