RandomInstance

RandomInstance[expr]

finds a random instance of an expression such as a geometric scene.

RandomInstance[expr,n]

finds n instances.

Details and Options

Examples

open all close all

Basic Examples  (1)

Represent a symbolic geometric scene containing a triangle with points a, b, c and a 30° angle:

In[1]:=
Click for copyable input
Out[1]=

RandomInstance finds a particular instance of the scene:

In[2]:=
Click for copyable input
Out[2]=

Rules giving coordinates for the points have been filled in:

In[3]:=
Click for copyable input
Out[3]//InputForm=

Find multiple instances of the scene:

In[4]:=
Click for copyable input
Out[4]=

Options  (1)

Applications  (1)

Properties & Relations  (1)

Introduced in 2019
(12.0)