This command will take the file.txt and separate each line into two fields using the colon (:) as the field separator. It will then print a random number, the first field, and the second field, separated by commas.
awk -F':' 'BEGIN{srand(); OFS=","}{print rand(),$1,$2}' file.txt