use seeding for rand