<prompt> Kuandika kazi katika Javascript kuzalisha idadi ya nasibu  <response>: Here is a simple function in javascript that can generate a random number:function generateRandomNumbermin, max return Math.random max - min min;This function takes in two parameters, min and max, which indicate the lowest and the highest bound of the range in which the random number is generated. The usage of the function Math.random returns a floating-point number between 0 and 1. This value is then multiplied by the difference between max and min to get a value within the specified range. Finally, min is added to this value to ensure that the number is within the correct range.An example of how to use this function:let randomNumber generateRandomNumber1, 100;console.lograndomNumber;This code generates a random number between 1 and 100 and logs it to the console. Note that the generated number will include the lower bound min but not the upper bound max. 