added "ratio" parameter to $choose.