Skip to content

Commit

Permalink
chore: modify random
Browse files Browse the repository at this point in the history
  • Loading branch information
answershuto committed Nov 6, 2023
1 parent 231c61d commit 54b85a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ async function getData() {
];

return [
images[Math.round(Math.random() * images.length - 1)],
images[Math.round(Math.random() * images.length - 1)],
images[Math.round(Math.random() * images.length - 1)],
images[Math.floor(Math.random() * images.length)],
images[Math.floor(Math.random() * images.length)],
images[Math.floor(Math.random() * images.length)],
];
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,27 +55,27 @@ async function getData() {

return [
{
logo: images[Math.round(Math.random() * images.length - 1)],
logo: images[Math.floor(Math.random() * images.length)],
title: 'ice.js',
description: '这是 ICE 框架',
},
{
logo: images[Math.round(Math.random() * images.length - 1)],
logo: images[Math.floor(Math.random() * images.length)],
title: 'ice.js',
description: '这是 ICE 框架',
},
{
logo: images[Math.round(Math.random() * images.length - 1)],
logo: images[Math.floor(Math.random() * images.length)],
title: 'ice.js',
description: '这是 ICE 框架',
},
{
logo: images[Math.round(Math.random() * images.length - 1)],
logo: images[Math.floor(Math.random() * images.length)],
title: 'ice.js',
description: '这是 ICE 框架',
},
{
logo: images[Math.round(Math.random() * images.length - 1)],
logo: images[Math.floor(Math.random() * images.length)],
title: 'ice.js',
description: '这是 ICE 框架',
},
Expand Down

0 comments on commit 54b85a2

Please sign in to comment.