This commit is contained in:
2021-01-24 16:18:54 +08:00
parent aeb8917aff
commit cd60625489
54 changed files with 105 additions and 157 deletions
+2
View File
@@ -1,3 +1,5 @@
# coding: UTF-8
class String
def self.random(length=10)
('a'..'z').sort_by {rand}[0,length].join