lua random numbers printing

-- Set the seed for the random number generator for reproducibility
math.randomseed(os.time())

-- Generate and print a random integer between 1 and 100 (inclusive)
local random_number = math.random(1, 100)
print("Random Number: " .. random_number)

Explanation: 1. math.randomseed(os.time()): Sets the seed for the random number generator based on the current time. This step ensures that the random numbers generated in the program will be different each time the program is run.

  1. local random_number = math.random(1, 100): Generates a random integer between 1 and 100 (inclusive) and assigns it to the variable random_number.

  2. print("Random Number: " .. random_number): Prints the generated random number to the console, along with a descriptive message.