Added RandomByWeight. #3.