kahaj 0 Junior Poster

Hey all.

I'm still trying to get use to how to work with rand. I'm just messing around with it to try and get good and comfortable with it. Working with a variable whose value starts out at 0, I want to try three different paramaters on it.

50% of the time, increase by 3
20% of the time, decrease by 6
30% of the time, increase by 1

Doesn't really matter what numbers are used, just trying to get a feel for this seemingly confusing function.


:(

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.