예제 #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)
                ));
 }