# random

Source: https://zotonic.com/docs/1310/random

URI: https://zotonic.com/id/1310

Language: en



Returns a random value from a list of values. When the input is an empty list or not a list then the result is undefined.

For example:

```django
{{ ["a","b","c"]|random }}
```

The output of this is one of “a”, “b” or “c”.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1310?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1310?language=en>)
