首页
文章
活动
博客
图书
招聘
Search
登录
注册
ruby小记录:随机生成字符串
2011-03-29
刘俊
rand(2**256).to_s(36)[0...n]
#n表示生成几位
链接:http://blog.logeek.fr/2009/7/2/creating-small-unique-tokens-in-ruby
0
该文章对我有帮助
474°
/
4743 人阅读
/
0 条评论
发表评论
请
登录
后发表评论
刘俊
访客 94301
刘俊
的其他博文
更多
ruby获取当前系统进程
minitest框架用断言提示no such file to load -- diff.exe
转:冷观中国软件测试业的尴尬
watir-webdriver remote control报错 The path to the driver executabl...
ruby输入日期的方法strftime
ruby个位数左侧自动补0
watir控制代码执行速度
沟通上没有对与错,只是立场不同而已
selenium/watir-webdriver远程启动目标机器运行脚本
慎入,消沉会传染