<samplePrimeNumbers/>
<samplePrimeNumbers/>
is a Math
component that generates random prime numbers from a specified range of values.
Attributes and Properties
Attribute | Type | Values |
---|---|---|
asList = "…" | "true" "false" | |
exclude = "…" | numberList | |
maxValue = "…" | integer | |
minValue = "…" | integer | |
numSamples = "…" | number | |
variantDeterminesSeed = "…" | boolean | "true" "false" |
Property | Type |
---|---|
$s.exclude | numberList |
$s.maxValue | integer |
$s.minValue | integer |
$s.numSamples | number |
$s.variantDeterminesSeed | boolean |
Example: Default <samplePrimeNumbers
Without any attributes specified, the default sampling range is . In this example, there are two ways to view different samples: selecting another variant, or refreshing the page.
Example: Using a re-sampling button
Without any attributes specified, the default sampling range is . The <callAction>
button can be used to resample the value.
Attribute Example: numSamples
The <samplePrimeNumbers/>
component is used with the numSamples
attribute
to select multiple random values in the default interval .
Attribute Example: minValue, maxValue
The <samplePrimeNumbers/>
component is used with the minValue
and the maxValue
attributes
to modify the default selection interval. Note that the interval endpoints provided do no need to
be primes.
Attribute Example: exclude
Values can be excluded from the sampled range using the exclude
attribute.