Search found 1 match

by Shoe123
03 Dec 2014 13:28
Forum: Scripts
Topic: Randomize the lines in a file
Replies: 3
Views: 16402

Re: Randomize the lines in a file

begin
// pick a random number
m := Trunc(Random * Document.LineCount);
// swap lines
temp := Document.Lines(n);
Document.Lines(n) := Document.Lines(m);
Document.Lines(m) := Temp;