get a number in a certain rate