Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

QBASIC Zufallsgenerator

Empfohlene Antworten

moin moin

ich such für die schule ne zufallsgenerator in QBASIC (ne bissel alt)

er soll 50 zahlen auf eine seite ausgeben, die 5 stellig sind.

hat da noch wer was ??

bei google hab ich nix gefunden!

mfg logimann

AFAIK war in der "OnlineHilfe" (Befehlsreferenz) das eigentlich immer ganz gut erklärt.

btw: Ich glaube, Du solltest das googeln noch mal üben ;)

(http://www.google.com/search?hl=de&ie=UTF-8&oe=utf-8&q=QBasic+Command+Manual&btnG=Google+Suche) :D

http://www.basicusers.net/tutorials/mallard/mallard_chap4_index.shtml

Another very requested item is how to do random numbers in QBasic

_ for dice rolls or whatever you might need it for._ There's a very simple

_ way to do this, involving the LET, INT, and RND commands._ Here's the syn-

_ tax of it:

_______ x = INT(RND * 10) + 1

_______ This would give you a number between 1 and 10._ To get a number

_ between 0 and 10, jus get rid of the "+ 1" portion of the line._ That's

_ all you have to do for random numbers - just change the RND number to get

_ your upper bound.

Du musst Dir ja nur ein Array für 50 Werte bauen, mit einer Schleife den Zufallsgenerator 50 mal aufrufen und die 50 Werte ins Array zwischenspeichern, danach einfach das Array wieder ausgeben, fertig!

Do*derendlichmalwiederseinen486erausgrabenmuss*ham

[EDIT]Eventuell kann man Dir auch im QBasic-Forum http://forum.qbasicnews.com/ weiterhelfen. [/EDIT]

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.