How to create random general knowledge questions via API?

I have to create 10,000 general knowlege questions via an Open AI. format should look like this

question:“What is the capital of Sri lanka?”,

how can I do with openai? what is the best suitable ai product for this?