JS - 随机数

var chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz0123456789'
console.log(chars.charAt(Math.floor(Math.random() * chars.length)))

posted @ 2019-12-16 21:23  武卡卡  阅读(101)  评论(0编辑  收藏  举报