Skip to main content
May 12, 2023 2:46 PM UTC
Solved

Program

Hi. Im kinda new here at mathcad and I am bad at programming, I am still trying to use the program part of mathcad, how can i program mathcad to generate 3 random numbers from 1-100?

I just want to start with something simple at first. 

Thank you.

 

 

 

 

 

 

 

VladimirNAnswer
May 14, 2023 1:03 PM UTC

In such a case, you can use the round function:

 

Pic_2.png

 

 

"Example: Truncation and Roundoff Functions": https://support.ptc.com/help/mathcad/r9.0/en/PTC_Mathcad_Help/example_truncation_and_roundoff_functions.html

5 replies

May 13, 2023 2:09 PM UTC
May 14, 2023 12:11 PM UTC

how do i make it an whole integer?

VladimirNAnswer
May 14, 2023 1:03 PM UTC

In such a case, you can use the round function:

 

Pic_2.png

 

 

"Example: Truncation and Roundoff Functions": https://support.ptc.com/help/mathcad/r9.0/en/PTC_Mathcad_Help/example_truncation_and_roundoff_functions.html