Skip to content

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

Description

@ice-orange-xi

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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