Fixed assigning random positions
Merge pull request #700 from dswd/fix_position_assign

Fixed assigning random positions