Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript random

function randint(low:number, max?:number) {
  return Math.floor(Math.random() * 10) % (max ?? low) + (max ? low : 0);
}
 
PREVIOUS NEXT
Tagged: #typescript #random
ADD COMMENT
Topic
Name
7+2 =