Completed chance_node case of sample()