A von Neumann theorem for uniformly distributed sequences of partitions