public class Solution { public int random7() { while (true) { //find random 25 int r = 5 * RandomFive.random5() + RandomFive.random5(); if (r < 21) { return r % 7; } } } }
点赞 评论

相关推荐

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