write a code to generate pseudorandom numbes



write a code to generate pseudorandom numbes..

Answer / Tara Singh Meena

Here's an example of how to generate pseudorandom numbers using JavaScript:n```javascriptnfunction getRandomNumber(min, max) {n return Math.floor(Math.random() * (max - min + 1)) + min;n}n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Code Interview Questions

how to create an anonymous function

1 Answers  


how to create a Custom Scrollbar

1 Answers  


how to get the User's Time of Day

1 Answers   HCL,


Code to Block submission of form by pressing Enter Key

1 Answers   TED,


Create a ViewState Property?

1 Answers   TCS,


code to Hide and Show form controls

1 Answers  


code to get the coordinates of a Click Event

1 Answers  


code to display a Countdown Timer (dynamic)

2 Answers  


how to determine which Mouse Button was pressed

1 Answers  


How to encode and decode URL strings?

1 Answers   TCS,


Create a Menu that can be activated while clicking on Right Mouse button

1 Answers   Nest, TCS,


write a code that user can choose/alter Body Text Size

1 Answers  


Categories
  • PHP Code Interview Questions PHP Code (33)
  • JSP Code Interview Questions JSP Code (6)
  • ASP Code Interview Questions ASP Code (5)
  • CGI Perl Code Interview Questions CGI Perl Code (3)
  • JavaScript Code Interview Questions JavaScript Code (63)
  • VB Script Code Interview Questions VB Script Code (20)
  • Shell Script Code Interview Questions Shell Script Code (31)
  • Python Code Interview Questions Python Code (34)
  • WinRunner Code Interview Questions WinRunner Code (1)
  • HTML DHTML XHTML Code Interview Questions HTML DHTML XHTML Code (13)
  • XML Interview Questions XML (43)
  • Scripts_Markup Code AllOther Interview Questions Scripts_Markup Code AllOther (5)