7#include "../utility/utility.hpp"
8#include "../macros.hpp"
11hi_export_module(hikogui.char_maps.random_char);
13hi_export
namespace hi {
16inline char32_t random_char() noexcept
25 auto s = size_dist(rand);
27 return char_cast<char32_t>(ascii_dist(rand));
30 return char_cast<char32_t>(latin_dist(rand));
33 auto c = char_cast<char32_t>(basic_dist(rand));
34 if (c >= 0xd800 and c < 0xe000) {
40 return char_cast<char32_t>(full_dist(rand));
The HikoGUI namespace.
Definition array_generic.hpp:20
DOXYGEN BUG.
Definition algorithm_misc.hpp:20