示例#1
0
 public static Vector2ub Next(this Random random, Vector2ub min, Vector2ub max)
 {
     return new Vector2ub(
         (byte)random.Next(min.X, max.X + 1),
         (byte)random.Next(min.Y, max.Y + 1)
     );
 }
示例#2
0
 public static Vector2ub Next(this Random random, Vector2ub min, Vector2ub max)
 {
     return(new Vector2ub(
                (byte)random.Next(min.X, max.X + 1),
                (byte)random.Next(min.Y, max.Y + 1)
                ));
 }