@@ -144,7 +144,7 @@ namespace turi {
144
144
/* *
145
145
* Generate a random number in the uniform real with range [min,
146
146
* max) or [min, max] if the number type is discrete.
147
- * [Double overload]
147
+ * [Float overload]
148
148
*/
149
149
template <typename NumType>
150
150
inline NumType uniform (const NumType min, const NumType max,
@@ -155,14 +155,6 @@ namespace turi {
155
155
return d (m_rng);
156
156
} // end of uniform
157
157
158
- /* *
159
- * Generate a random number in the uniform real with range [min,
160
- * max) or [min, max] if the number type is discrete.
161
- */
162
- template <typename NumType>
163
- inline NumType fast_uniform (const NumType min, const NumType max) {
164
- return uniform<NumType>(min, max);
165
- }
166
158
167
159
/* *
168
160
* Generate a random number in the uniform real with range [min,
@@ -385,11 +377,16 @@ namespace turi {
385
377
* max) or [min, max] if the number type is discrete.
386
378
*/
387
379
template <typename NumType>
388
- inline NumType fast_uniform (const NumType min, const NumType max) {
380
+ inline NumType uniform (const NumType min, const NumType max) {
389
381
if (min == max) return min;
382
+ <<<<<<< Updated upstream
390
383
return get_source ().fast_uniform <NumType>(min, max);
391
384
} // end of uniform
392
385
386
+ =======
387
+ return get_source().uniform<NumType>(min, max);
388
+ } // end of uniform
389
+ >>>>>>> Stashed changes
393
390
394
391
/* *
395
392
* \ingroup random
0 commit comments