Random Numbers

  • Thread starter Thread starter Brook
  • Start date Start date
B

Brook

Is it possible to generate random numbers in PPT 2000?
I'd like to display word problems that I can generate
random numbers like I do in Excel. PPT is a much cleaner
and "prettier" display than Excel.

Thansk .. Brook
 
Yes, you can do this, but it involves a little VBA programming. I hope to have some good examples of exactly what you want to do on my Web site (that goes with my book, Powerful PowerPoint for Educators) in the next few days. When you go to the Web site look at Examples by Chapter and look in Chapter 8 (the examples will probably be there Tuesday or Wednesday). If you email me (remove the NOSPAM from my email address), I'll send you some examples when I get to my office on Monday (in case you can't wait until later in the week), or you can go to my site and click on Buy the Book for information about where to get it and then type the examples yourself

http://www.loyola.edu/education/PowerfulPowerPoint

--Davi

----- Brook wrote: ----

Is it possible to generate random numbers in PPT 2000?
I'd like to display word problems that I can generate
random numbers like I do in Excel. PPT is a much cleaner
and "prettier" display than Excel.

Thansk .. Brook
 
Thanks for the response .. will be visiting your web
site to look at examples.
-----Original Message-----
Yes, you can do this, but it involves a little VBA
programming. I hope to have some good examples of
exactly what you want to do on my Web site (that goes
with my book, Powerful PowerPoint for Educators) in the
next few days. When you go to the Web site look at
Examples by Chapter and look in Chapter 8 (the examples
will probably be there Tuesday or Wednesday). If you
email me (remove the NOSPAM from my email address), I'll
send you some examples when I get to my office on Monday
(in case you can't wait until later in the week), or you
can go to my site and click on Buy the Book for
information about where to get it and then type the
examples yourself.
 
Brook,
Here's some sample code that I found on Google by searching on Brian
Reilly random. It was the first hit. It sorts slides in random order.
You should be able to modify it since it's the same VBA random method
used in Excel. (g)

Sub sort_rand()
Dim i As Integer
Dim myvalue As Integer
Dim islides As Integer
islides = ActivePresentation.Slides.Count
For i = 1 To ActivePresentation.Slides.Count
myvalue = Int((i * Rnd) + 1)
ActiveWindow.ViewType = ppViewSlideSorter
ActivePresentation.Slides(myvalue).Select
ActiveWindow.Selection.Cut
ActivePresentation.Slides(islides - 1).Select
ActiveWindow.View.Paste
Next
End Sub
Code by Brian Reilly, PowerPoint MVP


Brian Reilly, PowerPoint MVP
 
But I don't want a random Brian Reilly... It's taken me this long to get
used to the one we've got! (gdr)

--
Kathryn Jacobs, Microsoft PPT MVP
If this helped you, please take the time to rate the value of this post:
http://rate.affero.net/jacobskl/
Get PowerPoint answers at http://www.powerpointanswers.com
Get OneNote answers at http://www.onenoteanswers.com
Cook anything outdoors with http://www.outdoorcook.com
I believe life is meant to be lived. But:
if we live without making a difference, it makes no difference that we lived
 
But I don't want a random Brian Reilly... It's taken me this long to get
used to the one we've got! (gdr)

This is your brian.
This is your brian on random.

Scary.
 
[CRITICAL UPDATE - Anyone using Office 2003 should install the critical
update as soon as possible. From PowerPoint, choose "Help -> Check for
Updates".]

Hello,

PowerPoint does not have the ability to allow you to choose to display all
(or subset of slides) in a random order, without having to resort to VBA or
add-ins.

If you (or anyone else reading this message) feel strongly that PowerPoint
should have this kind of feature, don't forget to send your feedback (in
YOUR OWN WORDS, please) to Microsoft at:

http://register.microsoft.com/mswish/suggestion.asp

As with all product suggestions, it's important that you not just state
your wish but also WHY it is important to you that your product suggestion
be implemented by Microsoft. Microsoft receives thousands of product
suggestions every day and we read each one but, in any given product
development cycle, there are only sufficient resources to address the ones
that are most important to our customers so take the extra time to state
your case as clearly and completely as possible. Each submission should be
a single suggestion (not a list of suggestions).

John Langhans
Microsoft Corporation
Supportability Program Manager
Microsoft Office PowerPoint for Windows
Microsoft Office Picture Manager for Windows

For FAQ's, highlights and top issues, visit the Microsoft PowerPoint
support center at: http://support.microsoft.com/default.aspx?pr=ppt
Search the Microsoft Knowledge Base at:
http://support.microsoft.com/default.aspx?pr=kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
 
Back
Top