The script is self-explanatory. It can be expanded to more random strings by using a different modulo. Using a RAND() is no good if you were to load data with a single SELECT INTO or bcp because the same random seed is used.
Building random numbers can be challenging for people working in T-SQL. New author Chris Nowicki brings a solution he used to get a random number assigned to each row of a result set.