Loading [Contrib]/a11y/accessibility-menu.js
Back
Close

PHP MasterMind

Anonymous
1,455 views

Random Numbers

As the games rules states, we will need to generate random numbers.

You can only use zero or positive integer between 1 and 9.

Here are some hints, but you really should try to find by yourself.

Hints

Click to see some hints

To generate random numbers, you can use PHP built-in functions such as:

It is easier to use random_int.

Solution

Click to see a way to generate random numbers
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants