random – POFTUT

How To Generate Random Numbers with rand() and srand() Functions in C and C++?

C and C++ programming languages provide rand() and srand() functions in order to create random numbers. Random numbers can be used for security, lottery, etc. In this tutorial, we will learn how to use a random number generating functions rand() and srand() with their attributes and specialties. Random Numbers Random numbers are sequential numbers that are different … Read more

Globally Unique Identifier (GUID) Generator For Linux, Windows, Java, PHP, C#, Javascript, Python

Globally Unique Identifier (GUID) Generator For Linux, Windows, Java, PHP, C#, Javascript, Python

Globally Unique Identifier (GUID) is a pseudo-random string which consists of 32 letters, numbers (0-9), and 4 hyphens to separate letters. These letters are randomly generated. In probability theory, this value is unique and can be used as a secret and session cookie, etc. Example GUID The following line provides a GUID. as we can … Read more

What is UUID (Universally Unique Identifier)?

What is UUID (Universally Unique Identifier)?

While developing applications or using services or mounting disks in Linux systems we may see the term UUID or 128-bit number which might seem interesting. UUID is a 128-bit number that is used to identify things like name, record, disk whatever we want. Uniqueness Of UUID What makes UUID so special or interesting is its … Read more

How To Generate Random Numbers and Password with OpenSSL Rand

OpenSSL is great library and tool set used in security related work. While talking security we can not deny that passwords and random numbers are important subjects. In this tutorial we will learn how to generate random numbers and passwords with OpenSSL. Generate Base64 Random Numbers Base64 is an encoding format used in applications and … Read more

Linux dd Command To Backup with Examples

Backup is important part of the Linux system administration. Without backups a system is not safe and also the system administrator position too 🙂 . There are different ways to take backup. Some tools provides user level backup operation like copying or sync files. Other backup tools provides more file system level backup operation. One … Read more

Random Number Generator In Python

Python is practical language which provides different functions in practical way. Random number are generally used in security related issues but there are other areas too. In this post we will look different random number generation examples about python. Generate Random Number Between 0 and 1 Python provides a library named random by default. This library … Read more

How To Generate Random Numbers In Linux?

Generating random numbers can seem odd. But it is very important for security. Insecurity field whatever best cipher or algorithm you use if you can’t generate random numbers it is useless from point of view of security. So how can we generate random numbers in a Linux environment? Generate With urandom File urandom is a device … Read more

How To Shuffle/Randomize Array in PHP

There are different ways to randomly select elements of an array in PHP. But recurring elements are biggest problem most of them. Here the clean and PHP library supported solution for this. We will use shuffle() function which will change the positions of the given array. Shuffle Example shuffle() function accept only single parameter which is the … Read more