Shadowing Practice: How can you generate predictable Random numbers? #javalanguage #javacoding #javatips - Learn English Speaking with Video

Choose a practice mode

Each mode opens a full-screen practice room.

15 sentences
If sentences are too short or too long, click Edit to adjust them.
1
Question 398.
2
How can you generate repeatable random numbers?
3
Short answer.
4
A series of random numbers is always repeatable.
5
Less short answer.
6
When you create an instance of the random class,
7
you initialize the series of random numbers that you can get one at a time with the various methods of the class,
8
next int, next double and the like.
9
You can give a seed when you create this instance and for a given seed you will always get the same series.
10
This may be very useful when you want to write tests for instance.
11
If you do not provide any seed then the seed is generated from system .nanotime.
12
One last word, predictability is a different topic.
13
Having non -predictable random series is harder than it seems.
14
We can use the SecureRandom class instead of Random, which is the preferred random generator for cryptographic and security applications.
15
The series it generates still depends on a seed, but it's harder to predict.

Download App

Everything you need to speak fluently

AI PronunciationScore every sentence
IPA PracticeMaster every sound
VocabularyBuild your word bank
Vocab GameLearn while playing

Same Channel

FOR YOU

Recommend Video

Vocabulary and speaking notes for this lesson

This video has 15 sentences and 161 words to shadow. The speech runs for 1:10. The speaker talks at a steady 138 words per minute, a comfortable pace for shadowing. 83% of the words are among the 3,000 most common in English; the rest is worth studying before you start.

Key vocabulary in this video

13 words from the video worth learning, with pronunciation and meaning:

WordPronunciationMeaning
generate verb/ˈd͡ʒɛn.ə.ɹeɪt/To bring into being; give rise to.
topic noun/ˈtɑpɪk/A subject; a theme; a category or general area of interest.
depend verb/dɪˈpɛnd/To be contingent or conditioned; to have something as a necessary condition
predict verb/pɹɪˈdɪkt/To make a prediction: to forecast, foretell, or estimate a future event on the basis of knowledge and reasoning; to prophesy a future event on the basis of…
generator noun/ˈdʒɛnəɹeɪtə(ɹ)/An apparatus in which vapour or gas is formed from a liquid or solid by means of heat or chemical process, as a steam boiler, gas retort etc.
predictable adjective/pɹəˈdɪktəbləl/Able to be predicted.
repeatable adjective/ɹɪˈpiːtəbəl/Able to be repeated.
cryptographic adjectiveRelating to cryptography.
initialize verb/ɪˈnɪʃəlaɪz/To assign initial values to something.
predictability noun/pɹəˌdɪktəˈbɪlɪti/The characteristic of being predictable.
random adjective/ˈɹændəm/Occurring for no particular reason; haphazard, unpredictable.
instance verb/ˈɪnstəns/To mention as a case or example; to refer to.
prefer verb[pɹɪˈfɝ]To be in the habit of choosing something rather than something else; to favor; to like better.

Grammar in this video

The structures the speaker uses most, with the exact words from the video:

StructureIn the video
Passive voice be + past participle — the focus is on what happens, not who does itis generated
Relative clauses who / which + clause — extra information about a person or thingRandom, which is

Pronunciation to watch

  • Long words — get the stress right: generator /ˈdʒɛnəɹeɪtə(ɹ)/, predictable /pɹəˈdɪktəbləl/, repeatable /ɹɪˈpiːtəbəl/, initialize /ɪˈnɪʃəlaɪz/, predictability /pɹəˌdɪktəˈbɪlɪti/

How to practise with this video

  1. Listen to the whole video once without speaking and note the words you do not know.
  2. Shadow it sentence by sentence at normal speed, repeating each one until your rhythm matches the speaker.
  3. Record yourself and compare with the original, paying attention to words like generate, topic, depend.

What is the Shadowing Technique?

Shadowing is a science-backed language learning technique originally developed for professional interpreter training and popularized by polyglot Dr. Alexander Arguelles. The method is simple but powerful: you listen to native English audio and immediately repeat it out loud — like a shadow following the speaker with just a 1–2 second delay. Unlike passive listening or grammar drills, shadowing forces your brain and mouth muscles to simultaneously process and reproduce real speech patterns. Research shows it significantly improves pronunciation accuracy, intonation, rhythm, connected speech, listening comprehension, and speaking fluency — making it one of the most effective methods for IELTS Speaking preparation and real-world English communication.

Shadowing technique: read the full step-by-step guide →