Math.random () is a pseudo-random double value that is randomly selected for a system that is greater than or equal to 0.0 and less than 1.0.
datetime function (requires variable invocation):
var b = new Date (); //get current Time
B.gettime (); //get timestamp
b.getfullyear (), &NBS P //get year
B.getmonth () +1; //get Month +11
B.getdate () //get days
b.gethours (); //get hours
b.getminutes (); //get minutes
B.getseconds (); //get seconds
B.getday () ; &NBS P //get Day of the week
B.getmilliseconds (); //get milliseconds
Date () ; & Nbsp; //get Full Date
Mathematical functions (called with math):
ABS (x) the absolute value of the return Number.
Ceil (x) is rounded on the logarithm.
Floor (x) is rounded down with a logarithmic.
Round (x) rounds the number to the nearest Integer.
Max (x, Y) returns the highest value in X and Y.
Min (x, Y) returns the lowest value in X and Y.
The POW (x, y) returns the Y power of X.
sqrt (x) returns the square root of the Number.
var n=math.sprt (4)//give Four open square root, pay attention to the case of Math;
Java Script Basic functions