Hey,

I was trying to figure out how to make a number randomly positive or negative... I know how.. but it wont work...

Ive come to it, that I have to create a random number of either 1 or -1 and multiply it by my set number already... But I cant figure out the code to get that -1 or 1... Any ideas?

I tryed

L=L*Math.floor(1-Math.random()*3);

Didnt seem to work well.. It gave me all negative numbers...

Thanks to all in advance!

Peace,
~Bill