init - added rand seeding.