macroquad
macroquad copied to clipboard
Have macroquad::rand::gen_range function take range expressions
It could be nice to have the macroquad::rand::gen_range
function take range expressions as a parameter so that it is the same as the newer versions of the standard rand crate.
This would mean
macroquad::rand::gen_range(0, 9)
could be written as
macroquad::rand::gen_range(0..=9)
However, I am not sure how to avoid a breaking change, so it might not be worth it.