CoinDCX interview question

get random number value between ranges