Further to your message
Randomize; . . X := Random / 2; should provide a random number such that 0 <= x < 0.5 However, if you need the result as say a multiple of .001, you could Randomize; . . X := int(Random(500)) / 1000; which should provide a random number such that 0 <= x < 0.5 which is also a multiple of 0.001 Regards, Brian __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk