VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This code generates a random number, could be used in many things.

by zeid (2 Submissions)
Category: Math/Dates
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Originally Published: Sun 3rd September 2006
Date Added: Mon 8th February 2021
Rating: (1 Votes)

This code generates a random number, could be used in many things.

API Declarations


1- Text box.
2- Command button.

Rate This code generates a random number, could be used in many things.




Private Sub cmdrandom_Click()
txtnumber.text=int(rnd*1000)+1 'The *1000 could be changes to any bigger or smaller number.

End Sub


Download this snippet    Add to My Saved Code

This code generates a random number, could be used in many things. Comments

No comments have been posted about This code generates a random number, could be used in many things.. Why not be the first to post a comment about This code generates a random number, could be used in many things..

Post your comment

Subject:
Message:
0/1000 characters