random() always giving the same result, used randomseed()

Is A0 connected to anything? If so, it's not going to produce a good random seed.

If it is not connected to anything and you want it more random you can attach a piece of wire to A0 but don't connect the other end of the wire to anything!