我想知道我可以在给定范围内生成随机数(C++ 11)并控制某些数字的可能性.假设我生成0到4之间的随机数,数字"1"可能会在集合中绘制50%.
c++ random probability c++11
c++ ×1
c++11 ×1
probability ×1
random ×1