Text this: Chance and determinism in Avicenna and Averroes