用rand5实现rand7 是codetop里的一道题吧 先用(rand5-1)*5+rand5 生成0,25的随机数,取<=24范围的取余8
点赞 评论

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务