feat: add sample(list) and sample(list, count) methods to Random class with two sampling algorithms
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import "random" for Random
|
||||
|
||||
var random = Random.new(12345)
|
||||
|
||||
random.sample([]) // expect runtime error: Not enough elements to sample.
|
||||
Reference in New Issue
Block a user