O'Reilly logo

3D Game Programming for Teens, Second Edition by Eric Grebler, Maneesh Sethi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Random

Random is your best friend. Well, maybe not your best friend, but a really, really, really good friend. You can do a lot of cool stuff with the Random command in Blitz3D. Okay, enough already, what is Random? The Random command ... well ... makes things random. So far in this book, whenever we’ve wanted to specify an attribute for an object—for example, the color or size or position of a shape—we would actually tell Blitz3D what that attribute should be. Using the Random command, you can have Blitz3D randomly set the attributes for your object.

Why would you want to use random? Let me count the ways. There are literally thousands of different applications for the Random command, but I’ll give you just a few. Typically, the Random command ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required