On Tue, 14 Jun 2016 at 18:45 Fleshgrinder <p...@fleshgrinder.com> wrote:

> Why do we need so many functions to get a random int anyways if we now
> have random_int()? I would like to see all of them deprecated and
> removed in PHP 8.0.


Lets see if others support this option. (I'm not even sure I do right now)


> I do not see a problem to change array_rand(), array_shuffle(), nor
> str_shuffle() since their output should be random anyways.
>

Right now a call to srand() with a given seed will make these functions
return the same sequence of outputs for a particular set of inputs. This
behaviour is fine and sometimes even desirable. The changes in this RFC
will change those outputs, they will still be controllable with srand()
though

Reply via email to