×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Javier Fernández
Added: Dec 9, 2021 7:51 AM
Views: 601
Tags: no tags
  1.         double Num =  (Math.random()*2.5);
  2.         double NumR = Math.round(Num*100)/100.0;
  3.         System.out.println(NumR);