iajoiner commented on a change in pull request #9702:
URL: https://github.com/apache/arrow/pull/9702#discussion_r787358145



##########
File path: cpp/src/arrow/testing/random.h
##########
@@ -461,6 +471,29 @@ ARROW_TESTING_EXPORT
 void rand_month_day_nanos(int64_t N,
                           
std::vector<MonthDayNanoIntervalType::MonthDayNanos>* out);
 
+/// \brief Generate a single integer, enum or enum class element within a 
given range
+///
+/// If enum or enum class is used the int value will be used
+///
+/// \param[in] lower the lower bound of the range
+/// \param[in] upper the upper bound of the range
+/// \return a generated integer, enum or enum class element
+template <typename T, typename U>
+U random_single_int(T lower, T upper) {
+  const int random_seed = 0;
+  std::default_random_engine gen(random_seed);

Review comment:
       Ah really thanks! Yes I can.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to