# sm.ai.getRandomCreationPosition

eturns a random position on a given body.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.ai.getRandomCreationPosition( body )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.ai.md#getrandomcreationposition)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `body` | [Body](../Game-Script-Environment/Userdata/Body.md) | The body. |

**Returns:**

| Type | Description |
| --- | --- |
| [Vec3](../Game-Script-Environment/Userdata/Vec3.md) | The position. |
