Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript random number

//Random Number Between 1 to 10.Change (10), for an increased or decreased values..
let varibleNem = Math.floor(Math.random() * 10)+1; 
console.log(varibleNem);


//-----------
//Try Changing the 10, to 1000 it will give u a value between 1 to 1000...
//Taken from here ( https://youtu.be/1Rq_LrpcgIM?t=148 )
 
PREVIOUS NEXT
Tagged: #typescript #random #number
ADD COMMENT
Topic
Name
5+5 =