650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/1053353c9-0.png "title =" QQ20130825222719.png "/> 1: value: Generate 0 ~ 1 Float number includes 0 and 1)
Ii. Range: Number of custom Range classes generated
Note:
Var $ value: float;
$ Value = Random. value;
Var $ myInt: int;
Var $ myFloat: float;
$ MyInt = Random. Range (1,100 );
$ MyFloat = Random. Range (0, 0, 10.0 );
We can see that the Value property produces 0 ~ 1 random Float count
In addition, Range is divided into the case where int and Float are generated:
①: Int-"can produce the minimum value, but cannot generate the maximum value
②: Float-"can produce a minimum value or a maximum value.
In addition, the Range parameter must be consistent with the generated return type parameter.
This article is from the "Better_Power_Wisdom" blog, please be sure to keep this source http://aonaufly.blog.51cto.com/3554853/1282508