{{newin|[[0.9.0]]|090|type=function}}
Sets the seed of the random number generator using the specified integer number. This is called internally at startup, so you generally don't need to call it yourself.
== Function ==
=== Synopsis ===
<source lang="lua">
love.math.setRandomSeed( seed )
</source>
=== Arguments ===
{{param|number|seed|The integer number with which you want to seed the randomization. Must be within the range of [0, 2^53 - 1].}}
=== Returns ===
Nothing.
=== Notes ===
Due to Lua's use of double-precision floating point numbers, integer values above 2^53 cannot be accurately represented. Use the other variant of the function if you want to use a larger number.
== Function ==
Combines two 32-bit integer numbers into a 64-bit integer value and sets the seed of the random number generator using the value.
=== Synopsis ===
<source lang="lua">
love.math.setRandomSeed( low, high )
</source>
=== Arguments ===
{{param|number|low|The lower 32 bits of the seed value. Must be within the range of [0, 2^32 - 1].}}
{{param|number|high|The higher 32 bits of the seed value. Must be within the range of [0, 2^32 - 1].}}
=== Returns ===
Nothing.
== Examples ==
=== Set a random seed ===
<source lang="lua">
love.math.setRandomSeed(love.timer.getTime())
</source>

== See Also ==
* [[parent::love.math]]
* [[love.math.getRandomSeed]]
[[Category:Functions]]
{{#set:Description=Sets the seed of the random number generator.}}
== Other Languages ==
{{i18n|love.math.setRandomSeed}}