19 lines
357 B
C#
19 lines
357 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace Voxus.Random
|
|
{
|
|
public abstract class AbstractRandom : RandomGeneratorInterface
|
|
{
|
|
protected System.Random random = new System.Random();
|
|
|
|
public void SetSeed(float seed)
|
|
{
|
|
int seed2 = Mathf.FloorToInt(seed * 2.1474835E+09f);
|
|
random = new System.Random(seed2);
|
|
}
|
|
|
|
public abstract float Get();
|
|
}
|
|
}
|