Almost sure central limit theorems for random functions