To get useful Ubuntu server command line tips in your terminal, firstly install the fortune package and some more fortunes. ┌─[[email protected]]─[~] └──╼ $sudo apt install fortune fortunes-bofh-excuses fortunes-ubuntu-server Now run the command to print a random Ubuntu server tip. ┌─[[email protected]]─[~] └──╼ $fortune ubuntu-server-tips If you want to download a file from a URL via the …

Fetch information about a random Linux command. curl -sL commandlinefu.com/commands/random/plaintext | sed ‘3,4!d’curl -sL commandlinefu.com/commands/random/plaintext | sed ‘3,4!d’ Here is an example. ┌─[[email protected]]─[~] └──╼ $curl -sL commandlinefu.com/commands/random/plaintext | sed ‘3,4!d’ # An easter egg built into python to give you the Zen of Python echo "import this" | python┌─[[email protected]]─[~] └──╼ $curl -sL commandlinefu.com/commands/random/plaintext | sed …

This is a simple random number example in C. This will print a random number from 1 – 64. #include <stdio.h> #include <stdlib.h>   int main (void) {   srand(time(NULL)); int r = rand() % 64;   printf("Random INT: %i\n", r);   return 0; }#include <stdio.h> #include <stdlib.h> int main (void) { srand(time(NULL)); int r …

This code is on my http://securitron.securitronlinux.com page. It shows a random image and a random webpage link. <?php $time = strftime(“%A %d %B %Y. %r – %Z”); srand(time(NULL)); $day = rand() % 6; $string = sprintf(“<font size=\”2pt\”><p>Welcome to my website.</p>\n”); $links = array(“BejArray” => array(“0” => “perl_code.php”, “1” => “psx_doom.php”, “2” => “cgi_code.php”, “3” => …