JavaScript Random Number Tutorial

JavaScript Random Number Tutorial

JavaScript provides the Math module in order to generate random numbers. The Math.random() method is used to generate random numbers between 0 and 1 where 0 is included but 1 is not included. The Math.random() method can be used to generate random numbers as integers and in other forms. Generate Random Number with Math.random() The … Read more

How to Use Wireshark?

How to Use Wireshark?

Wireshark is the most popular tool in order to capture network packets for different network protocols and different network interface types. The Wireshark project started with the name Etheral providing very basic features. With the help of the community and developers, it became a very professional tool for network administrators and pen-testers. In this tutorial, … Read more

How To Find IP Address On MacOSX?

How To Find IP Address On MacOSX?

The IP address is used to communicate over the network using the LAN or Internet. Even we generally do not need to know our IP address on MacOSX in some cases we may require it. The IP address is used to communicate with a modem, router, or remote website. There are different ways to find … Read more

sizeof() In C Programming

How To Compare String In C?

C programming language provides the sizeof() function or operation in order to get the size of the specified variable, array, or object. The sizeof is very popular and used in different ways with different scenarios. The sizeof is very useful to get an object size in order to allocate required memory. sizeof() Syntax The sizeof() … Read more

How To Compare String In C?

How To Compare String In C?

C programming language provides the strcmp() function in order to compare strings. Strings are represented as character or char arrays in C. In this tutorial, we examine how to compare strings in C programming. strcmp() Function Syntax The strcmp() function syntax is like below. STR1 is the first string. STR2 is the second string. If … Read more