cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
Simple Script for Random Draw from 1 to n
julian
Community Manager Community Manager

This script prompts the user to enter a value for a random draw from 1 to n. The resulting number is displayed in a second window. For instructional purposes this script utilizes two different methods for drawing a window, Dialog() and New Window().

Instructions: Run the script and enter a value. Click "OK" to draw a random number from 1 to the value entered.

6977_Screen Shot 2014-07-09 at 9.55.17 PM.png6978_Screen Shot 2014-07-09 at 9.55.21 PM.png

Recommended Articles