This command will take the contents of the file "filename.txt" and add a random number to the beginning of each line, separated by a comma.
awk -F "," 'BEGIN { OFS = FS; } { print rand(), $0 }' filename.txt