about uscontact usnewsthe teamcareersresourcessite map
   
 
question from angel
question asked by angel
date asked 16 May 2001
subject Random numbers in VB
description Hi! I'm trying to pur random numbers between 1 and 6 into three label boxes: Private Sub Command1_Click() Label1 = Rnd * (6 - 1 + 1) + 1 Label3 = Rnd * (6 - 1 + 1) + 1 Label2 = Rnd * (6 - 1 + 1) + 1 the problem is the number come out like: 1,33233or 6,43344 how can I change this to make the numbers just 1 or 4,etc.? Thanks!

Microsoft VBScript runtime error '800a01f4'

Variable is undefined: 'sUserName'

/support/showanswer.asp, line 305