Tip: RandomRange lazarus / 13-General ---------------------------------------------------------------------- Silvio Clécio · 2010-03-24 19:15 I noticed that we not have RandomRange in Math Unit, then: Code: [Select]function RandomRange(AMin, AMax: Int64): Int64; begin   if AFrom > ATo then     Result := Random(AFrom - ATo) + ATo   else     Result := Random(ATo - AFrom) + AFrom; end; Do not know if it will serve lot, but I reported there in the bugtracker. Thanks