How to take a 3 random given name?
I tried:
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityIMO the best way is RandomEntity
as C.E. points out in the comments:
RandomEntity["GivenName", 3]
But another (deterministic) way is with the property "SampleEntities"
:
Take[EntityValue["GivenName", "SampleEntities"], UpTo[3]]
One approach is to use RandomChoice[ ] to get your random names:
list = EntityList["GivenName"];
RandomChoice[list, 3]
list
it is (nearly) instantaneous.
$\endgroup$
– bill s
Sep 28 '16 at 22:00
RandomEntity["GivenName", 3]
... $\endgroup$ – C. E. Sep 28 '16 at 12:23