Is there a way to generate a random UUID, which consists only of numbers?

后端 未结 10 1545
一生所求
一生所求 2020-12-09 09:27

Java\'s UUID class generates a random UUID. But this consists of letters and numbers. For some applications we need only numbers. Is there a way to generate random UUID that

10条回答
  •  半阙折子戏
    2020-12-09 09:56

    Why using the UUID class if you dont need an UUID? It sounds more like you need just a random number which can be achieved by using the java.util.Random class.

提交回复
热议问题