Wondering what the next step to generate 1 or 2 or 3 or 4, or 1 or 2 or 3 or 4

or 5, etc in this sequence:

Math.floor(Math.random()*2+1) is an integer 1 or 2

Math.ceil(Math.random()*3) is an integer 1 or 2 or 3

jeffpelletier,

Can you rephrase your question? It looks like you already have a

pattern that works. What are you missing?

David

stiller (at) quip (dot) net

"Luck is the residue of good design."

Can you rephrase your question? It looks like you already have a

pattern that works. What are you missing?

David

stiller (at) quip (dot) net

"Luck is the residue of good design."

1. Math.random() and Math.round(Math.random()) and Math.floor(Math.random()*2)

2. Math.random() and Math.round(Math.random()) and Math.floor(Math.random()*2)

3. Math::GMP tests and Crypt::Random fail on Compaq (Math::Pari related ??)

4. Is there a way to have math that is not "display math" look like ?display math?

5. Is there a way to have math that is not "display math" look like display math?

6. FA: 1-Day-Left: 6 Math Books - 4 Math CDROMs - Algebra, Discrete Math, Calculus, more...

7. Is there a way to have math that is not "display math" look like display math?

8. random number generator of Math.random() ?

9. Math.ceil/floor Vs parseInt Vs plus/minus

10. Is there a good reason that Decimal does not have Ceiling() method, only Math class has?

11. understanding Math.Ceiling

12. Is there a good reason that Decimal does not have Ceiling() method, only Math class has?

13. what is wrong with Math.ceil

14. Bad math when using * operator along with Math.pow

4 post • Page:**1** of **1**