Skip to main content

roll_sample

Function roll_sample 

Source
pub fn roll_sample(list: &Value, k: &Value) -> DogeResult
Expand description

roll.sample(list, k) — a new List of k distinct elements drawn from the List (by position, so duplicate values may appear if the List holds them). A k below zero or above the List’s length is a catchable ValueError.