# 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: 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.
