Search notes:

Perl function: srand

use warnings;
use strict;
use feature 'say';

srand(28081970);

for (1 .. 10) {
  say rand;
}

# 0.58203125
# 0.9383544921875
# 0.286651611328125
# 0.66912841796875
# 0.701873779296875
# 0.175872802734375
# 0.198944091796875
# 0.8096923828125
# 0.392120361328125
# 0.53692626953125
Github repository about-perl, path: /functions/srand.pl

See also

Perl functions

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758207330, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/functions/srand(63): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78