That's nothing that couldn't be done already with a database of recipes - and indeed there are quite a few tools out there that do exactly that.
Why you would insert the russian-roulette of statistically-generated randomness in what you ingest, is beyond me frankly.