FANDOM



(84) :rand
(89) :rand()

rand generates a random number between 0 and 1.

(89) :rand(int)

returns a random integer between 0 and the specified integer, including this the parameter and discluding 0. This is equivalent to the TI-84 command randInt(0,int)

Location Edit

TI-84

  • MATH
  • PRB
  • 1:rand

TI-89

  • 2ND + 5 (MATH)
  • 7:Probability
  • 4:rand(

Example Edit

:For(A,1,10)
:Disp rand
:End

This prints 10 random numbers between 0 and 1.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.