mirror of
https://github.com/TangentFoxy/lume.git
synced 2025-07-28 11:02:20 +00:00
Updated README.md on lume.randomchoice()'s behaviour
This commit is contained in:
@@ -56,7 +56,8 @@ between `0` and `a` is returned. If no arguments are supplied a random number
|
|||||||
between `0` and `1` is returned.
|
between `0` and `1` is returned.
|
||||||
|
|
||||||
### lume.randomchoice(t)
|
### lume.randomchoice(t)
|
||||||
Returns a random value from array `t`.
|
Returns a random value from array `t`. If the array is empty an error is
|
||||||
|
raised.
|
||||||
```lua
|
```lua
|
||||||
lume.randomchoice({true, false}) -- Returns either true or false
|
lume.randomchoice({true, false}) -- Returns either true or false
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user