![]() ![]() ![]() Let’s work on saving these numbers first and then consider a method for “rolling” our die. You can capture the essential characteristics of a die by saving the numbers 1, 2, 3, 4, 5, and 6 as a group of values in your computer’s memory. Which information should you save? In general, a die has six important pieces of information: when you roll a die, it can only result in one of six numbers: 1, 2, 3, 4, 5, and 6. You cannot place a physical object, like a die, into a computer (well, not without unscrewing some screws), but you can save information about the object in your computer’s memory. To simulate a pair of dice, you will have to distill each die into its essential features. Don’t worry if you’ve never programmed before the chapter will teach you everything you need to know. In it, you will build a pair of virtual dice that you can use to generate random numbers. This chapter provides a broad overview of the R language that will get you programming right away. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |