MCPcopy
hub / github.com/simstudioai/sim / randomDate

Function randomDate

packages/db/scripts/seed-stress-test-users.ts:96–99  ·  view source on GitHub ↗
(start: Date, end: Date)

Source from the content-addressed store, hash-verified

94]
95
96function randomDate(start: Date, end: Date): string {
97 const date = new Date(start.getTime() + randomFloat() * (end.getTime() - start.getTime()))
98 return date.toISOString().split('T')[0]
99}
100
101function generateUserRow(index: number): UserRow {
102 const firstName = randomItem(firstNames)

Callers 1

generateUserRowFunction · 0.85

Calls 1

randomFloatFunction · 0.90

Tested by

no test coverage detected