Breaking News
Home / Tag Archives: Random

Tag Archives: Random

How to generate a random number in CSharp?

In order to generate a random number between two numbers, use the Next Function of the Random class as shown below: Example : To simulate a roll of a dice, we would need to generate a random integer between 1 and 6 (6 not included). Random random = new Random();int …

Read More »

Display Random Quotes on Website using Php

Some website display random quotes to its visitors on various pages. The following snippet shows how to display a random quote(when ever the function is invoked) out of list of quotes that are pre populated into the arrary. As a further extension the quotes can be loaded from a newline …

Read More »
Advertisment ad adsense adlogger