Treint Business interview question

Write a function which returns a random number involving just arithmetic operations. And you cant take global variables.

Interview Answer

Anonymous

11 Mar 2024

I was not able to think of any solution. Then I was given hint and tried to do the problem but the online dart compiler was unable to run the program as I was using various ways to ensure that same number is not repeated.