RandomEntity

Listing of Entity Types »

RandomEntity[spec]

gives a pseudorandom entity with a type determined by the specification spec.

RandomEntity[spec,n]

gives a list of n pseudorandom entities.

Details

Examples

open allclose all

Basic Examples  (1)

Get a sample of a "Country" entity:

Find a sample of 5 "Volcano" entities:

Scope  (2)

Samples can be given from EntityClass expressions:

Implicit EntityClass expressions, based on conditional EntityProperty values, can also be sampled:

Possible Issues  (3)

If the sample size is larger than the number of available entities, an error message is issued:

The specified type should be an Entity, EntityClass, or known entity type:

Sample selection is done using the online Wolfram Knowledgebase, and does not follow client SeedRandom state:

Wolfram Research (2015), RandomEntity, Wolfram Language function, https://reference.wolfram.com/language/ref/RandomEntity.html.

Text

Wolfram Research (2015), RandomEntity, Wolfram Language function, https://reference.wolfram.com/language/ref/RandomEntity.html.

CMS

Wolfram Language. 2015. "RandomEntity." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RandomEntity.html.

APA

Wolfram Language. (2015). RandomEntity. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RandomEntity.html

BibTeX

@misc{reference.wolfram_2024_randomentity, author="Wolfram Research", title="{RandomEntity}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/RandomEntity.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_randomentity, organization={Wolfram Research}, title={RandomEntity}, year={2015}, url={https://reference.wolfram.com/language/ref/RandomEntity.html}, note=[Accessed: 22-November-2024 ]}