RandomFrom problem: MathStrUtils not found

Posted by Phil Birell p16812 on January 26, 2009

I want to use the function RandomFrom(ArrayOfStrings) in my program. I tried already to narrow the problem to the following simple program:

procedure TForm1.Button1Click(Sender: TObject);
begin
ShowMessage(RandomFrom(['a', 'b', 'c']);
end;

...but still Delphi gives an error:

[Fatal Error] Unit1.Pas(8): File not found: 'MathStrUtils.dcu'

What is wrong with my code? :(

Related articles

       

Follow Ups