Commit 1b1cf754 authored by Davis King's avatar Davis King

Added rand::get_random_64bit_number().

parent 0f88b396
......@@ -123,6 +123,14 @@ namespace dlib
return mt();
}
inline uint64 get_random_64bit_number (
)
{
const uint64 a = get_random_32bit_number();
const uint64 b = get_random_32bit_number();
return (a<<32)|b;
}
double get_random_double (
)
{
......
......@@ -88,6 +88,13 @@ namespace dlib
- returns a pseudorandom number in the range 0 to 2^32-1
!*/
uint64 get_random_64bit_number (
);
/*!
ensures
- returns a pseudorandom number in the range 0 to 2^64-1
!*/
float get_random_float (
);
/*!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment