16.12.2016, 07:25
Hey, I need to randomize 30 numbers into an Array, each number is a randomized number between the int limits (both negative and positive)
Although, my code doesn't work, and on second thought it's not even logic.
Anyone ?
Although, my code doesn't work, and on second thought it's not even logic.
Anyone ?
PHP код:
#include <a_samp>
new Array[30] = {0, ...};
main()
{
// Setting variables
for(new i = 0, j = sizeof(Array); i < j; i++) Array[i] = random(0x7FFFFFFF) + (-0x7FFFFFFF), printf("%d", Array[i]);
}