I am getting error while assigning random number

I have used the below for generating a random number

random = new random().Next(0,100). However, It shows some compile error
I have attached screens.

Hi @pridhvimallikharjun,

I see no issue and used the same code it worked fine. Try closing the Studio and run it again.
Please share screenshot of the error if it still persists.


@pridhvimallikharjun after assigning random number give delay