🎥 Make videos programmatically with React
add @ts-expect-error to random
Jonny Burger5b1f51a078b0
diff --git a/packages/docs/docs/random.md b/packages/docs/docs/random.mdindex b746ba1961..8f05f3d8c0 100644--- a/packages/docs/docs/random.md+++ b/packages/docs/docs/random.md@@ -6,9 +6,8 @@ title: random()The `random()` API will give your deterministic pseudorandom values. Unlike the `Math.random()` function, Remotions function takes in a seed which can be a `number` or a `string`. If the seed is the same, the output is always the same.```ts twoslash-// @errors: 2554-const random = (seed: number | string | null) => 0.07301638228818774 as const-// ---cut---+import {random} from 'remotion';+const rand = random(1); // 0.07301638228818774const rand2 = random(1); // still 0.07301638228818774@@ -19,6 +18,7 @@ const randomCoordinates = new Array(10).fill(true).map((a, i) => {};}); // will always be [{x: 0.2887063352391124, y: 0.18660089606419206}, ...]+// @ts-expect-errorrandom() // Error: random() argument must be a number or a string```