Returns an unordered/random generator over the input itrable. Note that this is forced to materialize the input before running.
The iterable to get items from
The number of items to return. All items are returned if count < 0. Default is -1
import { random } from 'deleight/generators';const unOrdered = random([1, 2, 3, 4]); // probably [4, 1, 3, 2] Copy
import { random } from 'deleight/generators';const unOrdered = random([1, 2, 3, 4]); // probably [4, 1, 3, 2]
Returns an unordered/random generator over the input itrable. Note that this is forced to materialize the input before running.