Library›Places
Random point on a ring
fn/game.RandomPointOnRing
A place picked by chance between two distances from another: never nearer than least, never further than most.
- Does
- An action: done when the run reaches it
- Runs
- On every machine
- Listed under
- Library › Places
- In a file
fn/game.RandomPointOnRing
Pins
- inata position
The place.
- inleasta number
The least.
Starts as
8 - inmosta number
The most.
Starts as
15 - outpointa position
The place picked.
How it is made
Its body, as the bench opens it read-only. Copy into my mod on the bench makes a copy to change. The library's file is places.graph.json.
Built from
- Random number
math/RandomNumberA number from least to most, by chance. - Cosine
math/CosThe cosine of an angle in radians. - Sine
math/SinThe sine of an angle in radians. - Multiply
math/MultiplyMultiplies them. - Make position
math/MakeVectorA place from x and y. - Add
math/AddAdds them up: whole numbers stay whole, a number makes a number, positions and colours go by their parts.
Modding