Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

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.

looking for doug's random number generator

Featured Replies

looked at some older posts but the links are dead, can someone point me to the file plz?doug dawson's (i belive it is his) random number generator for use with xml gauges

  • Author

Here you go. Remember that the values are quasi-random at best. There are "only" 32767 distinct values that will be chosen.Doughttp://forums.avsim.net/user_files/175607.zipEdit: For future reference, it is now (or shortly will be) in the Avsim library, as dsd_random_number.zipdsd

thanks Doug! check; after testing it would seem that the gauge generates the number in the panel config -1. or gauge46=dsd_random_number!random_number, 5,5,20,20,05 will generate random numbers for (L:dsd_random_01, number) thru (L:dsd_random_04,number) the 5th or what ever the upper limit is set to seems to stay 0.00000and that the number is 5 places to the right of the decimal.i watched it churn for a couple of minutes and it looked very random.true and correct?

  • Author

The gauge starts numbering the variables at zero, so for 5 variables, they will be numbered from 0 to 4.Five places to the right of the decimal makes sense - the raw value generated is an integer between 0 and 32767. I grind it down to a value between 0 and 1.Doug

Create an account or sign in to comment

Account

Navigation

Search

Search

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.