MCPcopy Create free account
hub / github.com/angular/examples / randomId

Function randomId

genkit-angular-story-generator/src/app/story.service.ts:70–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68}
69
70function randomId(): string {
71 return Date.now() + '' + Math.floor(Math.random() * 1000000000);
72}

Callers 1

StoryServiceClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected