I have a function that often returns me an RNG(Random Number Generator) that stops and I get the last 10 digits. For example: 9035210441.In order, for this digits I only interest me on the last 3, and what I need to do with then three last digits is to normalize between 72 and 120
If the last 3 digits of the system it get a 083 I don't make nothing, but if the 3 digits are 121 is >= 120 (false) then it would be worth 72. Otherwise, if the 3 last digits are 71 it would be worth 120, 70 is worth 119 and so forth. Numbers > 242 is worth 72... etc. Any math algorithmic solution for this???.
Regards and thanks for reading.
Aucun commentaire:
Enregistrer un commentaire