random0To1这个是什么意思

var randY = this.groundY + cc.random0To1() * this.player.getComponent(‘Player’).jumpHeight + 50;

生成一个0到1之间的随机数。

2赞