std::uniform_int_distribution<IntType>::operator()
来自 cppreference.cn
                    
                                        
                    < cpp | numeric | random | uniform int distribution
                    
                                                            
                    
| template< class Generator > result_type operator()( Generator& g ); | (1) | (C++11 起) | 
| template< class Generator > result_type operator()( Generator& g, const param_type& params ); | (2) | (C++11 起) | 
生成遵循关联的概率函数的随机数。通过调用 g.operator() 获得熵。
第一个版本使用关联的参数集,第二个版本使用 params。关联的参数集不会被修改。
[编辑] 参数
| g | - | 一个均匀随机位生成器对象 | 
| 参数列表 | - | 要使用的分布参数集,而非关联的那个 | 
| 类型要求 | ||
| - Generator必须满足 均匀随机位生成器 (UniformRandomBitGenerator) 的要求。 | ||
[编辑] 返回值
生成的随机数。
[编辑] 复杂度
均摊常数次 g.operator() 的调用。


