NumberGenerator
interface NumberGenerator implements Generator (View source)
Interface for generators that can also generate random numbers.
Methods
                    int
                
                
                    getNumber(int $min, int $max)
        
                                            
                
            Returns a securely generated random number between minimum and maximum.
Details
        
                            bool
    isSupported()
        
    
    Tells if the generator is supported by the operating system.
        
                            string
    getBytes(int $count)
        
    
    Returns securely generated random bytes.
This method will always return the correct number of bytes that have been securely generated. If the bytes cannot be securely generated or if the correct number of bytes cannot be generated, the method MUST throw an exception.
        at         line 22
                            int
    getNumber(int $min, int $max)
        
    
    Returns a securely generated random number between minimum and maximum.