RandomFrom problem: MathStrUtils not found

Posted by Phil Birell 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? :(

Follow Ups