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

Function getPattern

the-alexa-skill/python/lambda_fns/lambda.js:43–47  ·  view source on GitHub ↗
(min, max)

Source from the content-addressed store, hash-verified

41var ddbAdapter = require('ask-sdk-dynamodb-persistence-adapter');
42var USERS_TABLE = process.env.USERS_TABLE || '';
43function getPattern(min, max) {
44 min = Math.ceil(min);
45 max = Math.floor(max);
46 return Math.floor(Math.random() * (max - min + 1) + min);
47}
48var LaunchRequestHandler = {
49 canHandle: function (handlerInput) {
50 return handlerInput.requestEnvelope.request.type === 'LaunchRequest' ||

Callers 1

lambda.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected