add C++14 constexpr version: random generator