Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.

Thread Tools Display Modes
Share |
Old 03-03-2014, 11:35 PM
Jasonsmith21's Avatar
Jasonsmith21 Jasonsmith21 is offline
Contributing Member
Join Date: 02-13-14
Posts: 85
iTrader: 0 / 0%
Java Quiz : Generate a random number

This code - double randNumber = (int) (Math.random() * 40 + 20); will generate a random number between what range?
A) 0-60
B) 0-40
C) 20-40
D) 20-60
Reply With Quote



Old 03-04-2014, 01:38 AM
Messi07's Avatar
Messi07 Messi07 is offline
Contributing Member
Join Date: 11-26-12
Location: India
Posts: 70
iTrader: 0 / 0%
Answer is B) 20-40
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Unique random number help. rob7676 Coding Forum 9 08-21-2009 02:15 PM
Unique random number? rob7676 Coding Forum 7 04-27-2009 06:25 AM
ASP and Random Number for File Name johnconder Coding Forum 0 04-19-2007 12:46 PM
Generate Random Number Brian M Coding Forum 4 11-28-2006 01:08 PM

V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory

All times are GMT -7. The time now is 01:01 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC