Rand numbers

  • Thread starter Thread starter Robert
  • Start date Start date
Robert said:
how do u get rand numbers in power point?

This generates random integers between 10 and 100
=================================================
Public Sub Test()
Dim Lowerbound As Long, Upperbound As Long

Lowerbound = 10: Upperbound = 100
MsgBox Int((Upperbound - Lowerbound + 1) * Rnd + Lowerbound)

End Sub
=================================================

Bruno
 
Back
Top