mirror of
https://github.com/TangentFoxy/lume.git
synced 2024-11-19 07:04:24 +00:00
Updated README.md on lume.randomchoice()'s behaviour
This commit is contained in:
parent
dcc08346a2
commit
be71dbda78
@ -56,7 +56,8 @@ between `0` and `a` is returned. If no arguments are supplied a random number
|
||||
between `0` and `1` is returned.
|
||||
|
||||
### 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
|
||||
lume.randomchoice({true, false}) -- Returns either true or false
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user