public void SetRandomLocation() { int screenHeight = graphicsManager.Viewport.Height; int screenWidth = graphicsManager.Viewport.Width; location = new Vector2(rnd.Next(0, screenWidth), rnd.Next(0, screenHeight)); }