Accessing components via script and assigning randomized values to their parameters?

I have many fixed joints in my scene, on level Load, I would like to assign random values (within a fixed range) to the ‘Break Force’ and ‘Break Torque’ Variables of each of these fixed joint components.

Is this possible? Can anybody point me in the direction of figuring out how to do this, or at least let me know if it’s doable?

using UnityEngine;
using System.Collections.Generic;

public class FixedJointA : MonoBehaviour {
	

	public List<FixedJoint> joints = new List<FixedJoint>();
	float forceMin = 0.0f;
	float forceMax = 1.0f;
	float torqueMin = 0.0f;
	float torqueMax = 1.0f;

	void Start(){
		foreach(FixedJoint i in GetComponents<FixedJoint>()){
			joints.Add(i);
		}
	}

	void SetFixedJoint(){
		for (int i = 0; i < joints.Count; i++)
		{
			if(joints *!= null){*

_ joints*.breakForce = Random.Range(forceMin, forceMax);_
_ joints.breakTorque = Random.Range(torqueMin, torqueMax);
}
}
for(var i = joints.Count - 1; i > -1; i–)
{
if (joints == null)
joints.RemoveAt(i);
}
}
void Update(){
SetFixedJoint();
}
}*_