Random Number javascript

tipjs,random

Random Number javascript

function GetRandomNum(Min,Max)
{
var Range = Max - Min;
var Rand = Math.random();
return(Min + Math.round(Rand * Range));
}
var num = GetRandomNum(10000,999999);
alert(num);

Có thể bạn đã miss một số snippets code

Random Number javascript

Random Number javascript

Random String

Random String với độ dài tuỳ chọn

Ajax, call jQuery POST to node.js expressjs

Ajax, call jQuery POST to node.js expressjs

Làm phẳng mảng dùng phương pháp đệ quy

Làm phẳng mảng dùng phương pháp đệ quy

kiểm tra email trong javascript

kiểm tra email trong javascript