---
title: "Get Random Html Snippet"
method: GET
path: "/admin/deterministic-tex/random"
tags: ["Admin Tools"]
---

# Get Random Html Snippet

`GET /admin/deterministic-tex/random`

Fetch random HTML/KaTeX snippet for testing.

## Query parameters

- `source` 'teacher_exam' | 'public_exercise'
- `field` 'content' | 'solution'

## Response `200`

Successful Response

- RandomHtmlResponse
  - `html` string, required
  - `title` string, nullable
  - `source` 'teacher_exam' | 'public_exercise', required
  - `exam_id` string, nullable
  - `exercise_id` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/c407f3b5a05b/schema)
