! * \brief Generate random float data * \return The random float between [0.0, 1.0) */
| 57 | * \return The random float between [0.0, 1.0) |
| 58 | */ |
| 59 | inline float NextFloat() { |
| 60 | // get random float in [0,1) |
| 61 | return static_cast<float>(RandInt16()) / (32768.0f); |
| 62 | } |
| 63 | /*! |
| 64 | * \brief Sample K data from {0,1,...,N-1} |
| 65 | * \param N |
no outgoing calls
no test coverage detected