Hello everyone!!!Feel free to comments and subscribe!!!

Wednesday, June 13, 2018

How to random pick a number using Javascript

A simple random pick algorithm to define a number and probability.

For this example, Blogger once against will be the platform to demonstrate.

1. Sign in to Blogger and create new post.

2. Click on HTML tab on formatting bar.

3. Paste the code to the blank page.

4. Click on Compose tab on formatting bar to view the immediate result.

5. Make some adjustment to fit your requirement.


Random number

6. Code snippet.



7. Click save and publish to finalize the result.