Java Tutorial 22 - Math.random Lottery Game (Random Number Generator)

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

I'm not clear about (Math.random()*20)+1;? Now, If I want it random between 10-100 what should code be?

seapsonoeun
Автор

What software did you use bluej or eclipse

sakuntalachakrabarti
Автор

And if you want to have one more chance? For example if I enter a wrong number I want to have 2 more try, how can i make this?

deamoncomand
Автор

i need to do IE if the user input a number like 8 it output 8 random numbers between 1-99 how do i do this?

mrjacy
Автор

Hello!
Does anybody know how to make a random, non repeated, ordered number generator?
For ex: We have 1-50, and we want 5 unique random ordered numbers.
Please, help me as soon as you can!
Thank You!

benibbeni
Автор

You should learn how to use JOptionPane its really easy way of making guis

sommd
Автор

Visual Basic 2010 Express Tutorial 10 - Guess My Number Part 1 of 2 - Game

go to schoolfreeware and watch this tutorial its on their website and youtube!

PhillyFail
Автор

I love these tutorials!
BTW if I were to do this then how could I prevent the user from typing a double or decimal?

thomasbtmn
Автор

is it still dated? can i still use this?

pirateking
Автор

i have to do an assignment where they have 10 guesses nd its between 1-1000 nightmare

XDarXx