Re: Discussion: Object-scoped RNG

From: Date: Wed, 12 May 2021 22:50:52 +0000
Subject: Re: Discussion: Object-scoped RNG
Groups: php.internals 
Request: Send a blank email to internals+get-114457@lists.php.net to get a copy of this message
 > - Do you think that PHP needs an object-scoped random number
> > implementation? And why?

if this means each object can maintain its own seed i dont know why php or
many other languages dont have this truely. been doing game dev recently
and i needed an rng system that does not involve messing with the system
level seed. like if i mt_srand 42 just so my procedural code does the same
thing to generate the same level each time, so is the rest of the app not
even involved with procedural generation and that is badong.

-b


Thread (13 messages)

« previous php.internals (#114457) next »