NAME random.pl - Randomly swaps lines between two files SYNOPSIS random.pl [file 1] [file 2] DESCRIPTION This program will randomly swap lines between the two specified files. A variable found within the file, editable by plain text, in the "# configuration" section called "$factor" controls how many lines will be swapped on average. It is set by default to .5, meaning that 50% of the lines will be swapped. It works by stepping through each line in the first file and picking a random number between 0 and 1. If it is greater than the configured factor, it picks a random line in file 2 and swaps the two lines. This function might be useful because fv.pl distributes test and training feature vectors in an even way. CONSTRAINTS Perl must be located in /usr/local/bin/perl OPTIONS file 1 first file to randomly swap lines with file 2 second file to randomly swap lines with AUTHOR(S) U.Moszkowicz and A.Mehler SEE ALSO fv.pl