ok, so shady14u helped me with this. It looks like the (uint)DateTime.UtcNow.Millisecond is not working as intended. cutting it out resolves the problem.
Now I got random Portals!!!! :)
old example
public Vector3? GetRandomPoint(PointType pointType)
{
if (pointType == PointType.Entrance)
{
if (Entrances.Count == 0)
return null;
return Entrances.GetRandom((uint)DateTime.UtcNow.Millisecond);
}
if (Exits.Count == 0)
return null;
return Exits.GetRandom((uint)DateTime.UtcNow.Millisecond);
}new example
public Vector3? GetRandomPoint(PointType pointType)
{
if (pointType == PointType.Entrance)
{
if (Entrances.Count == 0)
return null;
return Entrances.GetRandom();
}
if (Exits.Count == 0)
return null;
return Exits.GetRandom();
}I hope this helps.