weight now has function to draw weighted sample