'VB.NET'에 해당되는 글 2건

  1. 2008.11.27 #VB,NET# Tip. 유닉스타임 생성 함수
  2. 2008.11.26 #VB,NET# Tip. 랜덤 숫자 생성 함수

Dim UnixTime As Double = System.Math.Floor(DateTime.UtcNow.Subtract(New DateTime(1970, 1, 1)).TotalSeconds)

Posted by eXtreme.RKing
,
     Public Function RandomNumber(ByVal low As Int32, ByVal high As Int32) As Integer
        Static RandomNumGen As New System.Random
        Return RandomNumGen.Next(low, high+1)
    End Function
Posted by eXtreme.RKing
,