Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
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.
Solved! Go to Solution.
In such a case, you can use the round function:
"Example: Truncation and Roundoff Functions": https://support.ptc.com/help/mathcad/r9.0/en/PTC_Mathcad_Help/example_truncation_and_roundoff_functions.html
Tip:
"Example: Generating Random Numbers": https://support.ptc.com/help/mathcad/r9.0/en/#page/PTC_Mathcad_Help/example_generating_rand_numb.html
how do i make it an whole integer?
In such a case, you can use the round function:
"Example: Truncation and Roundoff Functions": https://support.ptc.com/help/mathcad/r9.0/en/PTC_Mathcad_Help/example_truncation_and_roundoff_functions.html
but what if I want a non-repetitive random number?
also, what if I want a combination or a permutation?
With the programming block, you can do whatever you want: "About the Programming Tutorial": https://support.ptc.com/help/mathcad/r9.0/en/index.html#page/PTC_Mathcad_Help/Tutorials/prgm_tutorial/about_the_programming_tutorial.html