How To Install librandom123-dev on Ubuntu 18.04

In this tutorial we learn how to install librandom123-dev on Ubuntu 18.04. librandom123-dev is parallel random numbers library

Introduction

In this tutorial we learn how to install librandom123-dev on Ubuntu 18.04.

What is librandom123-dev

librandom123-dev is:

Random123 is a family of highly parallelizable counter-based random number generators (CBRNGs) that are useful for a wide range of applications.

Random123 is a library of “counter-based” random number generators (CBRNGs), in which the Nth random number can be obtained by applying a stateless mixing function to N instead of the conventional approach of using N iterations of a stateful transformation. CBRNGs are ideal for a wide range of applications on modern multi-core CPUs, GPUs, clusters, and special-purpose hardware. Three families of non-cryptographic CBRNGs are described in a paper presented at the SC11 conference: ARS (based on the Advanced Encryption System (AES)), Threefry (based on the Threefish encryption function), and Philox (based on integer multiplication). They all satisfy rigorous statistical testing (passing BigCrush in TestU01), vectorize and parallelize well (each generator can produce at least 2^64 independent streams), have long periods (the period of each stream is at least 2^128), require little or no memory or state, and have excellent performance (a few clock cycles per byte of random output). The Random123 library can be used with CPU (C and C++) and GPU (CUDA and OpenCL) applications.

There are three methods to install librandom123-dev on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install librandom123-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install librandom123-dev using apt-get by running the following command:

sudo apt-get -y install librandom123-dev

Install librandom123-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install librandom123-dev using apt by running the following command:

sudo apt -y install librandom123-dev

Install librandom123-dev Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install librandom123-dev using aptitude by running the following command:

sudo aptitude -y install librandom123-dev

How To Uninstall librandom123-dev on Ubuntu 18.04

To uninstall only the librandom123-dev package we can use the following command:

sudo apt-get remove librandom123-dev

Uninstall librandom123-dev And Its Dependencies

To uninstall librandom123-dev and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove librandom123-dev

Remove librandom123-dev Configurations and Data

To remove librandom123-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge librandom123-dev

Remove librandom123-dev configuration, data, and all of its dependencies

We can use the following command to remove librandom123-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge librandom123-dev

References

Summary

In this tutorial we learn how to install librandom123-dev package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.