FAQ
Products Showcase Download Extras Support
 
Home :: Support :: Community :: CourseLab Issues

Rounding

Rounding 
Author:  Kev Parker
Date: 30.04.2008 14:04:24
This is my first post and I must say that I have been very impressed with CourseLab. I have found the Math.random() function very useful however I have had to use 10 IF statements to get random numbers from 0 to 9. I now want to do random integers from 0 to 99 and obviously writing out 100 IF statements is not appealing. Is there a round or integer function I can use? I tried using % for remainder (as described in the help files) but couldn't get it to work at all. Java has a round function but does Courselab? Any ideas gratefully received.  
...

Welcome to CourseLab Community! If you have any questions regarding CourseLab - please post it here in corresponding thread. If you cannot find the thread that exactly fit to your question - you can place New thread message. If such thread already exists - please post your question there. Threads are time slipping - last changed threads are always on the top of the threads list.

Total number of threads: 631
Total number of comments: 2351
Filter by main thread topic:
Search for:  
 
v :)
Subject Author Date
 
<<Next threads Previous threads>>

Reply

You can also post this message as registered user. [Log in]
Author:
E-mail:
Subject:
Options:  Notify me if there is a new reply
Message emoticon:
Message body:
Insert smilie into text:
 
Jump to thread: