MCPcopy Create free account
hub / github.com/cdk-patterns/serverless / getPattern

Function getPattern

the-alexa-skill/python/lambda_fns/lambda.ts:16–20  ·  view source on GitHub ↗
(min: number, max: number)

Source from the content-addressed store, hash-verified

14const ddbAdapter = require('ask-sdk-dynamodb-persistence-adapter');
15const USERS_TABLE = process.env.USERS_TABLE || '';
16function getPattern(min: number, max: number) {
17 min = Math.ceil(min);
18 max = Math.floor(max);
19 return Math.floor(Math.random() * (max - min + 1) + min);
20}
21const LaunchRequestHandler: RequestHandler = {
22 canHandle(handlerInput: HandlerInput): boolean {
23 return handlerInput.requestEnvelope.request.type === 'LaunchRequest' ||

Callers 1

handleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected