Related Content
Creating A Mouse "Looking" Script With JavaScript
I've seen lots of "our team" pages over the years, but one of the ones that stood out to me the most were those that had an interactive element to them. For me, it adds a bit of personality to the page and makes it feel more alive than a bunch of silhouettes of the directors.
Creating Tic Tac Toe In JavaScript Part 2: Adding A Computer Player
After creating tic tac toe in JavaScript in my previous article I decided to add a second player in the form of a computer opponent.
Creating Tic Tac Toe In JavaScript Part 1: The Game
Tic Tac Toe (or noughts and crosses) is a good game to create when learning game development as it has simple rules and a known win state.
Creating A Simple Pie Chart With CSS
A pie chart is a great way of showing the relationship between numbers, especially when showing percentages. Drawing a pie chart from scratch takes a fair amount of maths to get working and so people usually go for third party charting libraries in order to add charts to the page.
Getting Up And Running With Nightwatch.js
Nightwatch.js is an end to end testing framework, written in JavaScript. It can be used to test websites and applications and uses the W3C WebDriver API to drive modern browsers to perform the tests.
In this article I will look at setting up Nightwatch.js in a project and getting started with writing tests.
Seven Tips For Getting The Most Out Of Marp
The Marp suite of tools is great for creating presentations from simple Markdown rules.
Comments
I am sorry. My English is just a little. I hope that you can understand me.
I tested fisherYates function.
fisherYates function is no good.
The Better Ways is blelow method.
OneArray.sort(function(){return Math.random() - Math.random();});
This sort function is more equitable !
var OneArray=[1,2,3,4,5,6,7,8,9,0];
Result 1, 2
OneArray.sort(function(){return Math.random() - Math.random();});
(1061) 0
(1003) 1
(990) 2
(964) 3
(1025) 4
(1010) 5
(970) 6
(996) 7
(1029) 8
(952) 9
(989) 0
(1029) 1
(1021) 2
(983) 3
(981) 4
(1004) 5
(948) 6
(963) 7
(1023) 8
(1059) 9
-------------
fisher Yate funcion test
(1007) 0
(1048) 1
(992) 2
(1026) 3
(1004) 4
(981) 5
(950) 6
(1052) 7
(1000) 8
(940) 9
(1025) 0
(1027) 1
(965) 2
(990) 3
(984) 4
(1042) 5
(997) 6
(1024) 7
(953) 8
(993) 9
(1014) 0
(1014) 1
(984) 2
(1058) 3
(979) 4
(996) 5
(1014) 6
(978) 7
(977) 8
(986) 9
Submitted by Anonymous on Sun, 06/12/2011 - 03:26
PermalinkWow! Thanks! I really appreciate you taking the time to post a comment giving such a detailed analysis.
If you feel like it, maybe you could write some other comments? Or even an full article? :)
Submitted by giHlZp8M8D on Sun, 06/12/2011 - 09:48
PermalinkAdd new comment