Generating a number generator
So today i am going to owrk on this. It looks hard let us see how i am going to cope with it.
So i basically opened up a new project in visual basic. i made a form with a button and a text box. I double clicked the button and i pasted this code in:
So here are screen shots of my final prooject:
HOW KOOL!!
- The function Randomize is to initialize Visual Basic's random number generator. This is to avoid the same sequence of psuedo-random values.
- RND is a function of Visual Basic. This is used to return pseudo-random values. The RND is also used to bring back the pseudo- number.
*pseudo= most computers don't generate truly random values. Computers use complex mathematical formulas to generate values which look random by aren't. Formulas are complex, they are still predictable. Random numbers generated by computers can be thought of a very, very long list of values. The computer always return the values in the same order, but it doesn't always start at the same place of the list.
No comments:
Post a Comment