Skip to content

我看了一下Common.genSeqNum()这个方法可以简化一下 #2

@ice-orange-xi

Description

@ice-orange-xi

这个多做了一些判断,比如abs,判断i的范围,感觉都是没有必要的。
while(count < 2){ i = r.nextInt(maxNum); sb.append(str[i]); count ++; }
这样就好多了。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions