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;
Search found 1 match
- 03 Dec 2014 13:28
- Forum: Scripts
- Topic: Randomize the lines in a file
- Replies: 3
- Views: 22338