mirror of
https://github.com/TangentFoxy/lume.git
synced 2025-07-28 02:52:21 +00:00
added seed() fn, corrected err with local math_random
This commit is contained in:
@@ -61,6 +61,11 @@ Given an `angle` and `magnitude`, returns a vector.
|
||||
local x, y = lume.vector(0, 10) -- Returns 10, 0
|
||||
```
|
||||
|
||||
#### lume.seed([low [, high]])
|
||||
Sets random seed. If using LOVE engine's math library, both `low` and `high`
|
||||
arguments are used, else, only one argument is accepted.
|
||||
|
||||
|
||||
#### lume.random([a [, b]])
|
||||
Returns a random number between `a` and `b`. If only `a` is supplied a number
|
||||
between `0` and `a` is returned. If no arguments are supplied a random number
|
||||
|
Reference in New Issue
Block a user