MCPcopy Create free account
hub / github.com/RozDavid/UnScene3D / randomUniform

Method randomUniform

utils/cpp_utils/include/vec3.h:203–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201 }
202
203 static vec3<T> randomUniform(T min, T max) {
204
205 std::default_random_engine generator;
206 std::uniform_real_distribution<T> distribution(min, max);
207
208 return vec3<T>(distribution(generator),
209 distribution(generator),
210 distribution(generator));
211 }
212
213 inline operator T *() {
214 return array;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected