refactored random generation done this far
Work on population