Modding
Discord Wishlist on Steam

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.

Random point on a ringallatleast8most15point
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.

StartallatleastmostRandom numberleast0most6.2832resultangle =valuevalueRandom numberleastmostresultreach =valuevalueangleanglereachreachCosinevalueresultSinevalueresult××Make positionxyresult+Returnallpoint
Random point on a ring

Built from