Answers for "how to generate random number"

PHP
2

Generating a random number

Random rnd = new Random();
int randomNumberTo10 = rnd.nextInt(10); // 0 - 9-ig generálhat számokat, 10-et sosem generál
Posted by: Guest on April-26-2021
-3

how to generate random number

<?php 
//  how to generate random number in php 
//The rand() function generates a random integer.

echo rand(111111,999999); 

?>
Posted by: Guest on July-03-2020

Code answers related to "how to generate random number"

Browse Popular Code Answers by Language