if (int(rand(10) = 0)) { # read from file A } else { # read from file B }