• Курсы
  • Компилятор кода
  • Обсуждения
  • Цены
  • Teams
Menu
+ 2

Random in java

Can someone explain me the random method

java
10th Sep 2017, 6:56 AM
Pankaj Bairwa
Pankaj Bairwa - avatar
2 ответов
+ 14
Math.random() or Random class? https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html#random-- https://docs.oracle.com/javase/8/docs/api/java/util/Random.html
10th Sep 2017, 7:03 AM
Tashi N
Tashi N - avatar
+ 10
Don't forget java.util.concurrent.ThreadLocalRandom https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ThreadLocalRandom.html
10th Sep 2017, 7:10 AM
ChaoticDawg
ChaoticDawg - avatar

Часто задают такие вопросы?

Учитесь эффективнее, бесплатно:

  • Введение в Python

    7.1M учащихся

  • Введение в Java

    4.7M учащихся

  • Введение в C

    1.5M учащихся

  • Введение в HTML

    7.5M учащихся

Смотреть все курсы
Актуальное сегодня
Loops and conditions
2 Votes
Algorithm to create maze-like grid
2 Votes
photo upload issue in html code
0 Votes
I can't figure out how to use the getElementById code in JavaScript Code Playground, I've tried multiple times and watched YT
0 Votes
Need a personal tutor
0 Votes
Community and feed option
0 Votes
How Much RAM is Required for Object Detection Project
0 Votes
How can I turn my .py files to .exe files?
1 Votes
Hey ! how to install modules on this app
0 Votes
Summary please??
0 Votes