DotRecastNetSim/src/DotRecast.Core/FRand.cs

24 lines
412 B
C#
Raw Normal View History

2023-04-27 16:36:05 +03:00
using System;
namespace DotRecast.Core
{
public class FRand
{
private readonly Random r;
public FRand()
{
r = new Random();
}
public FRand(long seed)
{
r = new Random((int)seed); // TODO : 랜덤 시드 확인 필요
}
2023-05-05 02:44:48 +03:00
public float Frand()
2023-04-27 16:36:05 +03:00
{
return (float)r.NextDouble();
}
}
}