I apologize if this Question has been asked before(I have slow WI-Fi), What are the Differences between randomseed
and random
(math), I also have seen the Tick() inside randomseed
what is the use of that too?
*Help would be appreciated(for my studying) *
Using random() isn't actually random. It is set. For example, if you do math.random() in a game instance 3 times, then do it again in another instance, you'll notice that the numbers are the same. Randomseed resets these numbers. So, if you want truly random numbers, do randomseed before doing random(). If you'd like to read more about this, you can on the wiki.
Random functions use built in formulas generate a "Random number". Computers cannot generate a random number without a pre-existing number.
Random member functions usually use the system time to generate a "Random number". But the start point of the random number can be changed to create a better random number. More Info Here
randomseed is used to manually set the start point of random number generating to give a better random number.
To truly get a random number you need randomseed that cannot be replicated unlike time. I have heard of a random number generator which used the noise from the HHD to generate a random number as the noise can never be re created unlike time which will repeat.
Locked by TheMyrco
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?