I'm not sure I understand your statement. Are you bringing to question that the laws themselves of chemical and physical determinants for reaction and molecular structure occurred through random events? Or, perhaps, that the earliest protein precedents of RNA/DNA resulted from random organic compounds coming together in an "planned" event?
I am suggesting that while the organic compounds may have had to follow specific laws in order to form DNA/RNA, the events themselves during which those laws were followed with those results were random.