Please take a look at this link: Random entry from dictionary
That example is C#, however, my question is how to generate a random entry from the dictionary in php?
Does php have an inbuilt function for dictionaries, or will I need an API or something else to do this?
array_randmight do what you want, if I understand the question correctly.