Advertisement
Guest User

Untitled

a guest
Dec 8th, 2015
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.17 KB | None | 0 0
  1. function GetRandomWord() : string;
  2. var
  3.   words : TStrArray;
  4. begin
  5.   words := ['Apple', 'Banana', 'Peach', 'Blueberry'];
  6.   result := words[Random(length(words))];
  7. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement