random(x) returns a value. u are just running the function. it wont serve the purpose. u need to assign it to a variable:

myVar = random(2);


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook