Unity API笔记

1. 返回某范围的随机数

Random.Range method.

static float Range(float min, float max);

  • returns a float – returns a random number contained inside the range limits;
  • float min – the bottom limit of the range;
  • float max – the upper limit of the range;

posted on 2017-04-23 13:16  lakeone  阅读(131)  评论(0编辑  收藏  举报

导航