Computer Science, asked by PANDUSATHWIK, 6 months ago

which coding bolck can give you any random number from 100 to 200​

Answers

Answered by itsme2021
0

If you use java then

double max=200, min= 100;

double range= max-min +1;

double result = Math.random()* range;

System.out.print("random number"+ result);

if you want a random number in integer form then take int type variables and

use this statement

int result = Math.random()* range + min;

Similar questions