From the course: Learning Julia
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Random numbers
- [Narrator] In this chapter we're going to learn about some useful features of Julia, that are either built into the language or are available as modules that you can import into your apps. And we'll start off with working with random numbers. It's fairly common when working with data to have to generate and use random numbers for statistics purposes and Julia provides many features for using random data, some of which we'll take a look at in this example. So I'll start up Random Start in my Editor here. And you can see that I imported the Random Module at the top of my file using the Using statement. So this imports the Random Module into my code and gives me access to the functions and features available in that module. So let's try something simple. We'll us the Rand function to create a random number. So I'm going to Print Line, and I'm going to call the Rand function with no arguments. Let's go ahead and save that and let's go to the terminal and let's just make sure I'm in the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.