You only need to call randomize() once when your application starts. After that, each number returned by random() should be quite random.

Also, you don't have to use 255 and do the mod 2 thing. Random() returns a random value in the range: 0 <= x < param. So just do Random(2) and check if your value is equal to zero.

Hope this helps!