Skip to main content
Module

x/grammy_conversations/mod.ts>ConversationHandle#random

Conversational interfaces for grammY
Go to Latest
method ConversationHandle.prototype.random
import { ConversationHandle } from "https://deno.land/x/grammy_conversations@v1.1.1/mod.ts";

Safely generates a random number from Math.random(). You should use this instead of Math.random() in your conversation because non-deterministic behavior is not allowed.