Student Mode Code Display

Welcome to the Fraternity!

Commenting has been enabled. You can comment on all the Code Items now.

Generate Random Numbers

Add This Code to My Favourite List
Enter Email

Contributed By admin
Date 2016-04-15 11:48:06

'Tutorial: itprof_tut
'Using Rnd defined Formula
Msgbox (Int((max-min+1)*Rnd+min))

'Another Method using Date and Time Stamp
 'Find out the current date and time
  Dim sDate : sDate = Day(Now)
  Dim sMonth : sMonth = Month(Now)
  Dim sYear : sYear = Year(Now)
  Dim sHour : sHour = Hour(Now)
  Dim sMinute : sMinute = Minute(Now)
  Dim sSecond : sSecond = Second(Now)

  'Create Random Number
  msgbox Int(sDate & sMonth & sYear & sHour & sMinute & sSecond)

Download Above Code


Updated by ronnykingmn at 2017-04-10 06:53:43

Add your comments...
Name : *      
Email : *      
The content of this field will be kept private and will not be shown publicly

Your Comment/Answer *

Enter the text present in this box : *