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
I am trying to create multiple users with lastName, firstName, email and so on...
I have a for loop and call faker each time, but it's creating the same user multiple times. I expected it to create multiple users with different names and so on...
Code snippet
for (int i = 0; i < 10; i++){
var faker = Fake();
users.add(
Users(
userid: faker.person.random.string(10),
name: faker.person.firstName(),
surname: faker.person.lastName(),
phone: faker.phoneNumber.us(),
email: faker.internet.email(),
username: faker.internet.userName(),
)
);
}
The text was updated successfully, but these errors were encountered:
I am trying to create multiple users with lastName, firstName, email and so on...
I have a for loop and call faker each time, but it's creating the same user multiple times. I expected it to create multiple users with different names and so on...
Code snippet
The text was updated successfully, but these errors were encountered: