我目前有以下代码,它只生成字母。我想要得到数字和字母。
#Generate random 8 digit number and output to file
output = File.new("C:/Users/%user%/Desktop/Strings.txt", "w")
i = 0
while i < 500
randomer = (0...8).map{65.+(rand(26)).chr}.join
output << randomer
output << "\n"
i = i+1
end
output.close