in this picture there is 5 blocks for now think that blocks has 5 color and i want to shuffle that blocks ho do i do that
Put a script on the block prefab (or each block, if you have none). The script could just look like this:
using UnityEngine;
public class SCRIPTNAME : MonoBehaviour
{
private void Start()
{
GetComponent<SpriteRenderer>().color = Color.HSVToRGB(Random.value, 1, 1);
}
}
This is assuming you are using SpriteRenderers.