Download
Download Latest
Version Support Policy
Documentation
Documentation Home
Tutorial
Project
Governance
Branding
License
GitHub Repository
Community
Contribute to PHP
Online Communities
Events | Conferences
Mailing Lists
PHP 8.5
All Releases
Search docs
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Exceptions
Generators
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Filesystem Security
Database Security
Error Reporting
Using Register Globals
User Submitted Data
Magic Quotes
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Dealing with XForms
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Safe Mode
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Credit Card Processing
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
Random
PHP Manual
PHP Manual
»
Autres extensions basiques
»
Random
Générateurs de nombres aléatoires et fonctions liées à l'aléatoire.
Introduction
Constantes pré-définies
Exemples
Fonctions Random
getrandmax
— Plus grande valeur aléatoire possible
lcg_value
— Générateur de congruence combinée linéaire
mt_getrandmax
— La plus grande valeur aléatoire possible
mt_rand
— Génère une valeur aléatoire via le générateur de nombre aléatoire Mersenne Twister
mt_srand
— Initialise le générateur de nombres aléatoires Mersenne Twister
rand
— Génère une valeur aléatoire
random_bytes
— Récupère des octets aléatoires cryptographiquement sécurisés
random_int
— Récupère un entier sélectionné de manière uniforme et cryptographiquement sécurisée
srand
— Initialise le générateur de nombres aléatoires
Random\Randomizer
— La classe Random\Randomizer
Random\Randomizer::__construct
— Construit un nouveau Randomizer
Random\Randomizer::getBytes
— Renvoie des octets aléatoires
Random\Randomizer::getBytesFromString
— Renvoie des octets aléatoires à partir d'une chaîne
Random\Randomizer::getFloat
— Renvoie un flottant uniformément sélectionné
Random\Randomizer::getInt
— Renvoie un entier sélectionné de manière uniforme
Random\Randomizer::nextFloat
— Renvoie un flottant sélectionné de l'intervalle ouvert à droite [0.0, 1.0)
Random\Randomizer::nextInt
— Renvoie un entier positif
Random\Randomizer::pickArrayKeys
— Sélectionne des clés de tableau aléatoires
Random\Randomizer::__serialize
— Sérialise l'objet Randomizer
Random\Randomizer::shuffleArray
— Renvoie une permutation d'un tableau
Random\Randomizer::shuffleBytes
— Renvoie une permutation par octet d'une chaîne de caractères
Random\Randomizer::__unserialize
— Désérialise le paramètre data en un objet Randomizer
Random\IntervalBoundary
— L'énumération Random\IntervalBoundary
Random\Engine
— L'interface Random\Engine
Random\Engine::generate
— Génère de l'aléatoire
Random\CryptoSafeEngine
— L'interface Random\CryptoSafeEngine
Random\Engine\Secure
— La classe Random\Engine\Secure
Random\Engine\Secure::generate
— Génère des données aléatoires de manière cryptographique sécurisée
Random\Engine\Mt19937
— La classe Random\Engine\Mt19937
Random\Engine\Mt19937::__construct
— Construit un nouveau moteur Mt19937
Random\Engine\Mt19937::__debugInfo
— Renvoie l'état interne du moteur
Random\Engine\Mt19937::generate
— Générer 32 bits de données aléatoires
Random\Engine\Mt19937::__serialize
— Sérialise l'objet Mt19937
Random\Engine\Mt19937::__unserialize
— Désérialise le paramètre data en un objet Mt19937
Random\Engine\PcgOneseq128XslRr64
— La classe Random\Engine\PcgOneseq128XslRr64
Random\Engine\PcgOneseq128XslRr64::__construct
— Construit un nouveau moteur PCG Oneseq 128 XSL RR 64
Random\Engine\PcgOneseq128XslRr64::__debugInfo
— Renvoie l'état interne du moteur
Random\Engine\PcgOneseq128XslRr64::generate
— Générer 64 bits de données aléatoires
Random\Engine\PcgOneseq128XslRr64::jump
— Déplace le moteur en avant de plusieurs pas
Random\Engine\PcgOneseq128XslRr64::__serialize
— Sérialise l'objet PcgOneseq128XslRr64
Random\Engine\PcgOneseq128XslRr64::__unserialize
— Désérialise le paramètre data en un objet PcgOneseq128XslRr64
Random\Engine\Xoshiro256StarStar
— La classe Random\Engine\Xoshiro256StarStar
Random\Engine\Xoshiro256StarStar::__construct
— Construit un nouveau moteur xoshiro256**
Random\Engine\Xoshiro256StarStar::__debugInfo
— Renvoie l'état interne du moteur
Random\Engine\Xoshiro256StarStar::generate
— Générer 64 bits de données aléatoires
Random\Engine\Xoshiro256StarStar::jump
— Déplace de manière efficace le moteur en avant de 2^128 pas
Random\Engine\Xoshiro256StarStar::jumpLong
— Déplace de manière efficace le moteur en avant de 2^192 pas
Random\Engine\Xoshiro256StarStar::__serialize
— Sérialise l'objet Xoshiro256StarStar
Random\Engine\Xoshiro256StarStar::__unserialize
— Désérialise le paramètre data en un objet Xoshiro256StarStar
Random\RandomError
— La classe Random\RandomError
Random\BrokenRandomEngineError
— La classe Random\BrokenRandomEngineError
Random\RandomException
— La classe Random\RandomException
↑
and
↓
to navigate •
Enter
to select •
Esc
to close •
/
to open
Press
Enter
without selection to search using Google