GODPAPER | All Packages | All Classes | Index | Frames No Frames |
Rand

Package | jp.dip.hael.gameai.util
Class | public class Rand
Inheritance | Rand Object

Public Methods

| Method | Defined By
--- | --- | ---
|  | index(length:int):int [static] [0, length)の整数乱数 | Rand
|  | intRange(min:int, max:int):int [static] [min, max]の整数乱数 | Rand
|  | rand2():Number [static] (-1.0, 1.0)の浮動小数乱数 | Rand
|  | realRange(lower:Number, upper:Number):Number [static] (lower, upper)の浮動小数乱数 | Rand

Method Detail

index | () | method

`public static function index(length:int):int`

[0, length)の整数乱数

Parameters

| `length:int`

Returns

| `int`

intRange | () | method |

`public static function intRange(min:int, max:int):int`

[min, max]の整数乱数

Parameters

| `min:int`
| `max:int`

Returns

| `int`

rand2 | () | method |

`public static function rand2():Number`

(-1.0, 1.0)の浮動小数乱数

Returns

| `Number`

realRange | () | method |

`public static function realRange(lower:Number, upper:Number):Number`

(lower, upper)の浮動小数乱数

Parameters

| `lower:Number`
| `upper:Number`

Returns

| `Number`

Thu Jan 16 2014, 01:11 PM +08:00