إِنَّا كُلَّ شَيْءٍ خَلَقْنَاهُ بِقَدَرٍ
Indeed, We have created everything according to a measure. (Al-Qamar 54:49)
The verse affirms an appointed measure for everything. The conditions of creation are therefore not independent of the Creator or merely uncontrolled accidents.
Allah knew the creatures before their existence and appointed their measures and conditions.