跳到主要内容

random_real2

(弃用)生成分布范围在 [0-1) 的浮点数

声明

float random_real2()

参数

参数名描述

返回值

[0-1)区间内的一个随机数

使用方式

float r2 = mreal.random_real2();

返回文档