Welcome to New Class

A big welcome to the Int 2 / Higher 2013-2014 group. I am not sure how I am going to tackle the blog for this year but I will have it sorted by August. We talked about the course structure and software development.

Today we started working with VB Express Edition 2008. You were introduced or reminded of the concepts of

  • Variables
  • Assignment
  • Randomisation
  • Message boxes

The program we created was a D6 simulator.

  • It made use of one Integer variable called RndNo.
  • The Randomize command is used to seed the random number generator, so that a new random number is produced on each execution.
  • The Int function is used to return only the integer part of a number and ignore the rest.
  • The Rnd function is used to create a random number between 0 and 1, we then multiply this by six to get a random number between 0 and 6 before changing that to a whole number (Between 0 and 5) and adding one.
  • The MsgBox command displays a window with the contents of the RndNo variable.