Rewrote get_uniform_01 using lambda expression