rand is not seeded.

Please seed it with a fixed seed