Should I set up a fund?

My question is this: At some point I will inherit a lot of money, somewhere between 5 and 10 million dollars in todays money. My aim is to give it away. A few years ago I was made aware that it is unusual for charities to “grow” their money, since risking donor money is frowned upon, leaving charitable organizations with a large competitive disadvantage compared to other companies. This has always seemed silly to me, so what I would really like to do is something like make a trust (index)fund where something like 3 percent of the money was paid to EA per year. But I dont really know much about this stuff, I was wondering if someone here knows more about it. Is this smart? Are there funds out there already that are iron-clad? What is the best way to set up something like this? A trust fund?