random number – 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

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

Linux Bash Default Environment Variables

While working with Bash environment we generally need some variable data to set and get. Bash shell provides some default values about current user, hostname etc. as environment variable. In this tutorial we will look most popular of them. Get The User Running Script While running bash interactively or non-interactively getting current user name is … 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