Theme Layout

Boxed or Wide or Framed

Wide

Theme Translation

Display Featured Slider

Featured Slider Styles

Display Grid Slider

yes

Grid Slider Styles

Display Trending Posts

Display Author Bio

Display Instagram Footer

off

Dark or Light Style

Light

Blog Archive

Powered by Blogger.

Wednesday, February 15, 2017

[JavaScript] Random


# JavaScript Random 


● Math.random()

 Math.random() returns a random number between 0 and 1.

● JavaScript Random integers

 Math.random() used with Math.floor() can be used to return random integers.

● A Proper Random Function

 As you can see from the examples above, It might be a good idea to create a proper random function to use for all random integer purposes.
This JSP function always returns a random number between min and max.


QuickEdit
Unknown
0 Comments
Share This Post :

You Might Also Like

No comments:

Post a Comment

Follow @SunriseSunsetBlog