# Modified Java Script Value Plugin

**URL:** <https://community.automationedge.com/t/modified-java-script-value-plugin/1820>\
**Category:** Get Help & Discuss\
**Created:** [March 19, 2020, 10:31am UTC](https://community.automationedge.com/t/modified-java-script-value-plugin/1820 "2020-03-19T10:31:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pravesh.mandloi](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@pravesh.mandloi](https://community.automationedge.com/u/pravesh.mandloi)\
**Post date:** [March 19, 2020, 10:31am UTC](https://community.automationedge.com/t/modified-java-script-value-plugin/1820/1 "2020-03-19T10:31:41Z")

</div>

How to generate random number in Modified Java script plugin?

---

<div class="post-metadata">

**Author:** ![madhavi.bade](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@madhavi.bade](https://community.automationedge.com/u/madhavi.bade)\
**Post date:** [March 19, 2020, 10:36am UTC](https://community.automationedge.com/t/modified-java-script-value-plugin/1820/2 "2020-03-19T10:36:56Z")

</div>

Hi,

To generate random number, can use Math.random() function of java script in Modified Java Script plugin.

var num=Math.random();

It will generate random number in the range 0 to less than 1 (inclusive of 0, but not 1) with approximately uniform distribution over that range.
