Skip to main content
3-Newcomer
May 12, 2023
Solved

Program

  • May 12, 2023
  • 1 reply
  • 2843 views

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.

 

 

 

 

 

 

 

Best answer by VladimirN

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

1 reply

24-Ruby III
May 13, 2023
3-Newcomer
May 14, 2023

how do i make it an whole integer?

VladimirN24-Ruby IIIAnswer
24-Ruby III
May 14, 2023

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