fix weighted random algorithm