random – POFTUT

Tagged: random

1

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 those are different than each other always. Random numbers are important for security which can be used to...

4

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

Globally Unique Identifier (GUID) is pseudo random string which consist 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 secret and session cookie etc. Example GUID Following line provides a GUID. as we can see there is 4 dashes which selaret the values into 5 parts. First part consist of 6...

0

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 128 bir number which is used to identify things like name, record, disk whatever we want. Uniqueness What makes UUID so special or interesting is its uniqueness. Yes it is right  event two different and discrete systems creates UUID it is assumed...

1

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 different systems which can be transferred and used without problem. Base64 do not provides control...

1

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 part of the Linux operating system is low level. Simply it has a lot of...

0

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 is used to provide different type of random functions according to given parameters. We will...

0

How To Generate Random Numbers In Linux?

Generating random numbers can be seem odd. But it is very important for security. In security 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 Linux environment. Generate With urandom File urandom is a device which resides under the /dev . We can read this  file which will output...

0

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 array we want to shuffle. shuffle() function will return shuffled array. In this example we will...

Enjoy this blog? Please spread the word :)