您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
17 行
419 B
17 行
419 B
|
|
using UnityEngine;
|
|
|
|
namespace AxelF {
|
|
|
|
public static class Randomizer {
|
|
public const float denominator = 1f / (float) 0x80000000;
|
|
|
|
public static int seed;
|
|
|
|
public static int next { get { return seed = (seed + 35757) * 31313; }}
|
|
public static float plusMinusOne { get { return (float) next * denominator; }}
|
|
public static float zeroToOne { get { return (plusMinusOne + 1f) * 0.5f; }}
|
|
}
|
|
|
|
} // AxelF
|
|
|