hello. I am working on some code that uses a random range of floating point 
values. I have come up with this

0.001 + (RandomRange(0, 32767) / 32767) * (0.5 - 0.001)

but the problem is that it returns values 0.01 - 0.5 instead of 0.001 - 0.5
Is there a better way to do this? Also Is this forum ok to ask math 
questions? It is delphi related lol 

__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to