Seed the rand library before calling it