title: Platform Positions Randomly Generated - Not Generating within possible range
body: <p>Basically, the issue I have is that the platforms generate vertical however they go off to the top right (See Image). Therefore the player can't make the jump to the platforms, without me having to increase their speed and jump values. I'd like to make it possible for the platforms to be generated at a random range, that is possible to jump too.</p>
  <p><strong>Platform Generation Code:</strong></p>
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class PlatformGenerator : MonoBehaviour
  {
      public GameObject thePlatform;
      public Transform generationPoint;
      public float distanceBetween;
  
      private float platformWidth;
  
  
      public float distanceBetweenMin;
      public float distanceBetweenMax;
  
      // Start is called before the first frame update
      void Start()
      {
          platformWidth = thePlatform.GetComponent&lt;BoxCollider2D&gt;().size.x;
      }
  
      // Update is called once per frame
      void Update()
      {
          if(transform.position.y &lt; generationPoint.position.y)
          {
              distanceBetween = Random.Range(distanceBetweenMin, distanceBetweenMax);
  
              transform.position = new Vector3(transform.position.y + platformWidth + distanceBetween, transform.position.x, transform.position.z);
  
              Instantiate(thePlatform, transform.position, transform.rotation);
          }
      }
  }
  </code></pre>
  <p><strong>Platform Destroyer Code</strong></p>
  <pre><code>using System.Collections;
  using System.Collections.Generic;
  using UnityEngine;
  
  public class PlatformDestroyer : MonoBehaviour
  {
      public GameObject platformDestructionPoint;
  
      // Start is called before the first frame update
      void Start()
      {
          platformDestructionPoint = GameObject.Find(&quot;PlatformDestructionPoint&quot;);
      }
  
      // Update is called once per frame
      void Update()
      {
          if(transform.position.x &lt; platformDestructionPoint.transform.position.x)
          {
              Destroy(gameObject);
          }
      }
  }
  </code></pre>
  <p>Here is an image of what I'm experiencing.
  <a href="https://i.stack.imgur.com/rwXYS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rwXYS.png" alt="Image Detailing The Issue" /></a></p>