macroquad icon indicating copy to clipboard operation
macroquad copied to clipboard

Have macroquad::rand::gen_range function take range expressions

Open tlietz opened this issue 2 years ago • 0 comments

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.

tlietz avatar Apr 09 '22 17:04 tlietz