Monday, April 11, 2011

Don't mind this please

Elektronischer Würfel


In VB Zufallszahlen generieren (2 Schritte):

1. Initialisierung vom VB-Zufallszahlengenerator mittels Randomize

2.Randombefehl Rnd()

Rnd liefert eine Zahl zwischen 0 und 1



Variablen:

zahl= 1 + Int(6 * Rnd() )

label1.text= zahl

Dim zahl as Object definiert die Zahl

bei einzelner Unteraktion dann zahl = definieren; dann zB L1.text = zahl

Bei einer NumUpDown-Box muss der Int(Num1.value * Rnd() ) für zahl definiert werden; L1.text = zahl

Bedingungsschleife:


if then

Anweisung1 – An

end if

2 comments:

Nintendosaiyan said...

It's hard not to XD

Jasmin said...

It's just my computer science notes, I decided to post them here for the sake of my happiness. (I tend to scribble and have about 50 loose sheets of paper in my notebooks, so I'm NEVER able to find anything!)