Google full text of our books:


Digital Dice:
Computational Solutions to Practical Probability Problems
Paul J. Nahin
With a new preface by the author

Paperback | 2013 | $18.95 | £14.95 | ISBN: 9780691158211
288 pp. | 5 1/2 x 8 1/2 | 1 halftone. 31 line illus. 22 tables.
Add to Shopping Cart

eBook | ISBN: 9781400846115 |
Our eBook editions are available from these online vendors

Reviews | Table of Contents
Introduction[PDF] pdf-icon | Problems 1 and 2 [PDF] pdf-icon | Problems 1 and 2 [HTML] | Solutions 1 [PDF] pdf-icon

Google full text of this book:

MATLAB codes (open each file with either Notepad or Wordpad.)

Some probability problems are so difficult that they stump the smartest mathematicians. But even the hardest of these problems can often be solved with a computer and a Monte Carlo simulation, in which a random-number generator simulates a physical process, such as a million rolls of a pair of dice. This is what Digital Dice is all about: how to get numerical answers to difficult probability problems without having to solve complicated mathematical equations.

Popular-math writer Paul Nahin challenges readers to solve twenty-one difficult but fun problems, from determining the odds of coin-flipping games to figuring out the behavior of elevators. Problems build from relatively easy (deciding whether a dishwasher who breaks most of the dishes at a restaurant during a given week is clumsy or just the victim of randomness) to the very difficult (tackling branching processes of the kind that had to be solved by Manhattan Project mathematician Stanislaw Ulam). In his characteristic style, Nahin brings the problems to life with interesting and odd historical anecdotes. Readers learn, for example, not just how to determine the optimal stopping point in any selection process but that astronomer Johannes Kepler selected his second wife by interviewing eleven women.

The book shows readers how to write elementary computer codes using any common programming language, and provides solutions and line-by-line walk-throughs of a MATLAB code for each problem.

Digital Dice will appeal to anyone who enjoys popular math or computer science. In a new preface, Nahin wittily addresses some of the responses he received to the first edition.


"The problems are accessible but still realistic enough to be engaging, and the solutions in the back of the book will get you through any sticky spots. Writing your own versions of a few of these programs will acquaint you with a useful approach to problem solving and a novel style of thinking."--Brian Hayes, American Scientist

"Digital Dice will appeal to recreational mathematicians who have even a limited knowledge of computer programming, and even nonprogrammers will find most of the problems entertaining to ponder."--Games Magazine

"[An] enjoyable read, as [Nahin] writes clearly, with humour and is not afraid to include equations where necessary. Nahin spices the book throughout with factual and anecdotal snippets. Digital Dice will appeal to all who like recreational mathematics."--Alan Stevens, Mathematics Today

"[T]he book is targeted at teachers and students of probability theory or computer science, as well as aficionados of recreational mathematics, but anyone who is familiar with the basics of probability and is capable of writing simple computer programs will have no problem working their way through this interesting and rewarding book."--Physics World

"After the appearance of the author's earlier book on probability problems, [Duelling Idiots And Other Probability Puzzlers], one has high expectations for this book, and one is not disappointed. . . . The book will certainly have great appeal to all three of the targeted audiences."--G A. Hewer, Mathematical Reviews

"This well-written entertaining collection of twenty-one probability problems presents their origin and history as well as their computer solutions. . . . These problems could be used in a computer programming course or a probability course that includes Monte Carlo simulations."--Thomas Sonnabend, Mathematics Teacher

More reviews

Table of Contents

Other Princeton books authored or coauthored by Paul J. Nahin:


Subject Areas:


Shopping Cart options:

  • For ebooks:

Our eBook editions are available
from these online vendors:

  • Amazon Kindle Store
  • Apple iBooks
  • Barnes & Noble Nook Store
  • Kobo eBook Store
  • Many of our ebooks are available through
    library electronic resources including these platforms:

  • Books at JSTOR
  • Ebrary
  • Ebook Library
  • EBSCO Ebooks
  • MyiLibrary
  • Dawsonera (UK)

    • For hardcover/paperback orders in United States, Canada, Latin America, Asia, and Australia

     Paperback : $18.95 ISBN: 9780691158211

    Add to shopping cart
    View contents of your shopping cart

    • For hardcover/paperback orders in Europe, Africa, the Middle East, India, and Pakistan

     Paperback  £14.95 ISBN: 9780691158211

    Add to shopping cart
    View contents of your shopping cart

    Prices subject to change without notice

    File created: 7/11/2017

    Questions and comments to:
    Princeton University Press

    New Book E-mails
    New In Print
    PUP Blog
    Princeton APPS
    Sample Chapters
    Princeton Legacy Library
    Exam/Desk Copy
    Recent Awards
    Princeton Shorts
    Freshman Reading
    PUP Europe
    About Us
    Contact Us
    PUP Home

    Bookmark and Share 
    Send me emails
    about new books in:
    Popular Science
    More Choices