The will of albus dumbledore

The will of Albus Dumbledore contains the itemsw he owned but J.K. Rowling only told us the things in his will that he left to Harry Ron and Hermione. It is almost like he can tell the future and then give them the things they will need to survive.