public ushort GetHeuristic(IntVector3 p) { // Add a bit random so that the river doesn't go straight var r = new MWCRandom(p, 1); return (ushort)(p.Z * 10 + r.Next(4)); }