Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3977844
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:58:20+00:00 2026-05-20T04:58:20+00:00

I need to check if a string is fairly random without performing frequency analysis

  • 0

I need to check if a string is fairly random without performing frequency analysis because it will be too time consuming. Is there such algorithm already out there? I am building this with java but a generic description of an algorithm will be also very useful.

Clarification:
To the human eye, the following text is somehow random…. dsfsddsfdsfsddsfs …. or even po340-3gk30g3gkf;glkp.

I don’t want to know for sure how random it is. I just want to detect, pretty much the way a human being will, if a string is random looking without measuring it’s actual randomness.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T04:58:20+00:00Added an answer on May 20, 2026 at 4:58 am

    I need to check if a string is fairly random without performing frequency analysis because it will be too time consuming.

    A simple frequence analysis is basically the fastest thing I can imagine. You just traverse the characters in the string (once) and keep track of the counts.

    I can’t imagine you can find any “randomness-test” that is faster than this.

    Besides, I can’t really say that your question is clear. Technically any string is as random as any other. If you’re after what “looks” random, I suppose you need to look for all kinds of patterns, and this will for sure be too time-consuming for you.

    Is this random in your opinion:

    String str = "                      o         _        _            _        "
               + "           _o        /\_      _ \\o     (_)\__/o     (_)       "
               + "         _< \_      _>(_)    (_)/<_       \_| \      _|/' \/   "
               + "        (_)>(_)    (_)           (_)      (_)       (_)'  _\o_ ";
    

    It doesn’t look very random to me, but I’d have a hard time to define what looks random.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to check if a string starts with the following: += I've tried
I need to check if a string contains any of this characters: Á,À,Ã,É,Ê,Í,Ó,Õ,Ô,Ú,Ç I
Pretty straight forward. In javascript, I need to check if a string contains any
I got a list of strings. And I want to check for every string
I wish to implement a fairly simple CSV checker in my C#/ASP.NET application -
The loop: var pattern = _dict[key]; string before; do { before = pattern; foreach
I need to create a PHP script that receives XML input via an HTTP
currently I'm developing on an older ASP.NET MVC 1 Application, to add theme support.
I have a treeSet in a class It also offers a couple of ways
What is the best practice for referencing nested objects? Let's say I have the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.