> For the complete documentation index, see [llms.txt](https://docs.arcology.network/arcology-concurrent-programming-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arcology.network/arcology-concurrent-programming-guide/utility/runtime.md).

# Runtime

The [`Runtime contract`](https://github.com/arcology-network/concurrentlib/blob/main/lib/runtime/Runtime.sol) provides runtime information to developers. It exposes functions to retrieve pseudo-process IDs (PIDs) and pseudo-random UUIDs.

### Random Number Generators

**`pid()`**: Returns the **pseudo-process ID** (PID) of the current execution unit (EU).\
Since all EUs are identical and stateless, `pid()` is useful for generating **deterministic, job-scoped keys or values** within parallel execution.

`uuid()`: Returns a **deterministic, job-scoped pseudo-random UUID**. This value is unique per job and can be used to generate **non-colliding keys or identifiers** within the concurrent execution context.

###

```solidity
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.arcology.network/arcology-concurrent-programming-guide/utility/runtime.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
