TypeScript:
// tra 1 e 4
console.log(Math.floor(Math.random() * 4)+1);
TypeScript:
// tra 5 e 9
console.log(Math.floor(Math.random() * ( 9 - 5 + 1) + 5 ));
Programmazione .Net, Asp.Net, Compact Framework. Filenet e tanto altro materiale informatico.
Nessun commento:
Posta un commento