math.random() follows which algorithms

前端 未结 5 1536
盖世英雄少女心
盖世英雄少女心 2021-01-03 03:47

Am using math.random() method to generate random numbers. but i had a doubt about that method. math.random() is which algorithms will fallow to generate random

5条回答
  •  伪装坚强ぢ
    2021-01-03 04:34

    It uses the pseudo random number generation algorithms ie the numbers which are constantly fluctuating from throughout the system.

    You may also find this interseting to read:- Pseudo-Random vs. True Random

    Also check the Source for java.util.Random

提交回复
热议问题