mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
random pack generation works
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1045 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -25,8 +25,8 @@ Since the result is random, calling the function twice will give a different ans
|
||||
> random_select([1,2,3,4]) == 2
|
||||
> random_select([1,2,3,4], count:3) == [2,3,1]
|
||||
> random_select([1,2,3,4], count:3) == [3,1,4]
|
||||
> random_select([1,2,3,4], count:3, replace: true) == [2,3,2]
|
||||
> random_select([1,2,3,4], count:3, replace: true) == [1,3,4]
|
||||
> random_select([1,2,3,4], count:3, replace: true) == [2,3,2]
|
||||
> random_select([1,2,3,4], count:3, replace: false) == [1,3,4]
|
||||
|
||||
--See also--
|
||||
| [[fun:random_shuffle]] Randomly shuffle a list.
|
||||
|
||||
Reference in New Issue
Block a user