We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 998659e commit b38430eCopy full SHA for b38430e
controller.rst
@@ -26,7 +26,7 @@ This renders a page that prints a lucky (random) number::
26
*/
27
public function numberAction()
28
{
29
- $number = mt_rand(0, 100);
+ $number = random_int(0, 100);
30
31
return new Response(
32
'<html><body>Lucky number: '.$number.'</body></html>'
0 commit comments