Pātuhitia tēnei: Chance and determinism in Avicenna and Averroes