言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

Random

Namespace: UnityEngine

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

ランダムなデータを生成するためのクラスです。

Static Variables

insideUnitCircle 半径1 の円の内部のランダムな点を返します (Read Only)
insideUnitSphere 半径1 の球体の内部のランダムな点を返します (Read Only)
onUnitSphere 半径1 の球体の表面上にランダムな点を返します (Read Only)
rotation ランダムなQuaternion型の値を返します (Read Only)
rotationUniform ランダムなQuaternion型の値を返します (Read Only)
seed 乱数を生成する初期値を設定します
value Returns a random number between 0.0 [inclusive] and 1.0 [inclusive] (Read Only).

Static Functions

Range Returns a random float number between and min [inclusive] and max [inclusive] (Read Only).