changed weight configuration
changed pseudo random generator for something faster