Function Repository Resource:

# RandomRealPoint

Randomly choose a point within a specified domain

Contributed by: Arnoud Buzing
 ResourceFunction["RandomRealPoint"][{range1,range2,…}] generates a random point in the domain defined by the ranges. ResourceFunction["RandomRealPoint"][ranges,n] generates n random points on the domain. ResourceFunction["RandomRealPoint"][ranges,{n1,n2,n3}] gives an n1× n2×… array of random points.

## Details and Options

RandomRealPoint uses RandomReal to generate points with a uniform distribution.
Possible specifications of rangei are:
 xmax between zero and xmax {xmin,xmax} in range xmin to xmax

## Examples

### Basic Examples

Find a point within a domain:

 In[1]:=
 Out[1]=

Find many within a four-dimensional domain:

 In[2]:=
 Out[2]=

Create an array of random two-dimensional points in the specified domain:

 In[3]:=
 Out[3]=

Plot the points on a plane:

 In[4]:=
 Out[4]=

### Scope

Create an array of random three-dimensional points:

 In[5]:=
 Out[5]=

Plot the points as surfaces:

 In[6]:=
 Out[6]=

## Requirements

Wolfram Language 11.3 (March 2018) or above