Referencing an int value in another script?

Essentially I have a script, BlockType, that generates a number, 1 - 10, on start up. I want to get the script, blockSpawn, to reference the value startblock. I’ve tried to start it but I’m simply not sure on the formatting for this. What would be the proper formatting for referencing this integer? Thanks guys! This place is heaven for someone struggling to learn Unity and C#.

BlockType

using UnityEngine;
using System.Collections;

public class BlockType : MonoBehaviour {
	
	public void Start () 
	{
		float numGen = Random.Range (0.00f, 10.00f);
		int i = 2;
		if (i >= 2 && numGen <= 2)
		{
			int startblock = 1;
			Debug.Log (numGen);
			Debug.Log (startblock);
	
		}
		if (numGen >= 2 && numGen <= 4)
		{
			int startblock = 2;
			Debug.Log (numGen);
			Debug.Log (startblock);
		}
		if (numGen >= 4 && numGen <= 6)
		{
			int startblock = 3;
			Debug.Log (numGen);
			Debug.Log (startblock);
		}
		if (numGen >= 6 && numGen <= 84)
		{
			int startblock = 4;
			Debug.Log (numGen);
			Debug.Log (startblock);
		}
		if (numGen >= 8)
		{
			int startblock = 5;
			Debug.Log (numGen);
			Debug.Log (startblock);
		}
	}
	

	public void Update () {
		float numGen = Random.Range (0.00f, 10.00f);
		if (Input.GetMouseButtonDown (0) && numGen <= 2.00){
			int selectedBlock = 1;

				Debug.Log (numGen);
			Debug.Log (selectedBlock);
				}
		if (Input.GetMouseButtonDown (0) && numGen >= 2.00 && numGen <= 4.00){
			int selectedBlock = 2;
			
			Debug.Log (numGen);
			Debug.Log (selectedBlock);
		}
		if (Input.GetMouseButtonDown (0) && numGen >= 4.00 && numGen <= 6.00){
			int selectedBlock = 3;
			
			Debug.Log (numGen);
			Debug.Log (selectedBlock);
		}
		if (Input.GetMouseButtonDown (0) && numGen >= 6.00 && numGen <= 8.00){
			int selectedBlock = 4;
			
			Debug.Log (numGen);
			Debug.Log (selectedBlock);
		}
		if (Input.GetMouseButtonDown (0) && numGen >= 8.00){
			int selectedBlock = 5;
			
			Debug.Log (numGen);
			Debug.Log (selectedBlock);
		}

		}
}

blockSpawn

using UnityEngine;
using System.Collections;






public class blockSpawn : MonoBehaviour {

	public GameObject blockA;
	public GameObject blockB;
	public GameObject blockC;
	public GameObject blockD;
	public GameObject blockE;
	public GameObject Spawner;
	BlockType startblock;

	
	void Start () {


	}
	

	void Update () {
		startblock = GetComponent<BlockType>();
	}
}

::EDIT:: I did add a public int startblock; to the BlockType public class, but it doesn’t take the value of the startblock’s below it.

Weird, my answer got deleted when I tried to edit it.

Sorry, I did forget the cast in there.

BlockType myBlock;
int blocktype;

void Start(){
   myBlock = (BlockType) GetComponent("BlockType");
   blocktype = myBlock.blocktype;
}