How to code the dist statement with array in the constraint

In reply to Manikanta Kopparapu:

the purpose for this is to random the my_addr to be selected either inside the start_addr and end_addr, or one of the elements in my_exc_array.