You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":".gitattributes","path":".gitattributes","contentType":"file"},{"name":"CODE_OF_CONDUCT.md","path":"CODE_OF_CONDUCT.md","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"SECURITY.md","path":"SECURITY.md","contentType":"file"},{"name":"shuffle2.js","path":"shuffle2.js","contentType":"file"},{"name":"version","path":"version","contentType":"file"}],"totalCount":9}},"fileTreeProcessingTime":6.871374,"foldersToFetch":[],"incompleteFileTree":false,"repo":{"id":728630417,"defaultBranch":"main","name":"Shuffle-array-using-sort-method-step2","ownerLogin":"KidiIT","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2023-12-07T10:59:48.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/146373396?v=4","public":true,"private":false,"isOrgOwned":false},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"main","listCacheKey":"v0:1703793024.0","canEdit":false,"refType":"branch","currentOid":"325c11f76e204eb7d9a25232ef9e1242c01f19aa"},"path":"README.md","currentUser":null,"blob":{"rawLines":null,"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/KidiIT/Shuffle-array-using-sort-method-step2/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"README.md","displayUrl":"https://github.com/KidiIT/Shuffle-array-using-sort-method-step2/blob/main/README.md?raw=true","headerInfo":{"blobSize":"1.92 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"a1f9cdb","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FKidiIT%2FShuffle-array-using-sort-method-step2%2Fblob%2Fmain%2FREADME.md","isCSV":false,"isRichtext":true,"toc":[{"level":1,"text":"Shuffle array using sort method step2","anchor":"shuffle-array-using-sort-method-step2","htmlText":"Shuffle array using sort method step2"}],"lineInfo":{"truncatedLoc":"20","truncatedSloc":"10"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"Markdown","languageID":222,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/KidiIT/Shuffle-array-using-sort-method-step2/blob/main/README.md","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/KidiIT/Shuffle-array-using-sort-method-step2/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/KidiIT/Shuffle-array-using-sort-method-step2/raw/refs/heads/main/README.md","renderImageOrRaw":false,"richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eShuffle array using sort method step2\u003c/h1\u003e\u003ca id=\"user-content-shuffle-array-using-sort-method-step2\" class=\"anchor\" aria-label=\"Permalink: Shuffle array using sort method step2\" href=\"#shuffle-array-using-sort-method-step2\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eTo begin with, I'm so happy about what am about to share with y'all today.on one hand,when we talk about shuffling of array it's easy to think of the steps to use when writing your algorithm to solve the probelm.on the other hand,getting your array shuffle after stating your steps is another issue to work on. that will lead us to the algorithm I used to solve the problem.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eBefore getting us to what we need to know know, I want to let y'all know that this program might be one of the shortest code you've seen so far been used to shuffle an array with javascript.\nMy algorithm are as follows:\u003c/p\u003e\n\u003cp dir=\"auto\"\u003estep1: create a veriable and call it name or what you wish.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003estep2: create an array container that will hold your veriables.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003estep3: then use sort method to sort the array in the container using an alert().\u003c/p\u003e\n\u003cp dir=\"auto\"\u003estep4: after which, a simple function was introduced to be able to shuffle the array with a Math function merged simultaneously without any conflict. just like a nested function,writing a function inside of another funtion which can be called a method in javascript.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eHowever, i believed y'all has an indepth understanding on what happened on the step 1 of my program on how to shuffle an using sort method step 1. if you do then congratulation you're ready to advance and will be able to undertsand what will happen on the step 2.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eNOTE: If you'd ask for my advise, on my end I'll encourage anyone using this program to understand what happened on this code first before using it. because It'll go a very long way for you. that been said, I'd love y'all to compare and contrast step1 and stpe2 on how to shuffle array using sort method. looking forward for y'all reviews and comments on the discussion section or you can contact me directly if you have any difficulties on the program. also, I'm always open to new ideas that will sharpen and impact my skills positively. Thank y'all and you're welcome!🙃\u003c/p\u003e\n\u003c/article\u003e","renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":false,"symbols":[{"name":"Shuffle array using sort method step2","kind":"section_1","ident_start":2,"ident_end":39,"extent_start":0,"extent_end":1963,"fully_qualified_name":"Shuffle array using sort method step2","ident_utf16":{"start":{"line_number":0,"utf16_col":2},"end":{"line_number":0,"utf16_col":39}},"extent_utf16":{"start":{"line_number":0,"utf16_col":0},"end":{"line_number":20,"utf16_col":0}}}]}},"copilotInfo":null,"copilotAccessAllowed":false,"modelsAccessAllowed":false,"modelsRepoIntegrationEnabled":false,"csrf_tokens":{"/KidiIT/Shuffle-array-using-sort-method-step2/branches":{"post":"T4ik4ArOQarfit9fid4CQC8sUBpahwZtUfIZ91aFGTj2p79Ld2NsljKQ1K__HUOzBDKwX-WQa3j8nonxwmI7sg"},"/repos/preferences":{"post":"KX27H_Hj3CPbtnCI8DyEGuITGKR-pZi1k_IyuL8Bp31M2WQISfrnbglPbEpXmarak531LNLTKC1IYZ5z6JULvg"}}},"title":"Shuffle-array-using-sort-method-step2/README.md at main · KidiIT/Shuffle-array-using-sort-method-step2","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-2e7f7047116e.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}