title: How to score random numbers in a way the lower the number is, the more scores it gives?
body: <p>There is a function that gives random decimal numbers from -Inf to +Inf includes fractional numbers.  </p>
  
  <p>I need "to weight" every number and "to give" a score to every number - the lower the number, the more scores. Scores must be positive numbers.  </p>
  
  <p>For example, if the function gives -10 and 0.1 then -10 should be scored more than 0.1.
  But in every step, the function gives only one number, and  I don't know how many numbers there will be.  </p>
  
  <p>I've puzzled over it for a long time and I can not find any solution :(   </p>